diff --git a/db/migrate/20161101110308_devise_create_users.rb b/db/migrate/20161101110308_devise_create_users.rb index 9200e8b1..87b8255f 100644 --- a/db/migrate/20161101110308_devise_create_users.rb +++ b/db/migrate/20161101110308_devise_create_users.rb @@ -1,4 +1,4 @@ -class DeviseCreateUsers < ActiveRecord::Migration +class DeviseCreateUsers < Activerecord::Migration[4.2] def change create_table :users do |t| ## Database authenticatable diff --git a/db/migrate/20161102091145_add_name_to_user.rb b/db/migrate/20161102091145_add_name_to_user.rb index 74142b05..c98284f2 100644 --- a/db/migrate/20161102091145_add_name_to_user.rb +++ b/db/migrate/20161102091145_add_name_to_user.rb @@ -1,4 +1,4 @@ -class AddNameToUser < ActiveRecord::Migration +class AddNameToUser < Activerecord::Migration[4.2] def change add_column :users, :name, :string end diff --git a/db/migrate/20161102131604_create_profiles.rb b/db/migrate/20161102131604_create_profiles.rb index 48ec9fea..ef1d1e5d 100644 --- a/db/migrate/20161102131604_create_profiles.rb +++ b/db/migrate/20161102131604_create_profiles.rb @@ -1,4 +1,4 @@ -class CreateProfiles < ActiveRecord::Migration +class CreateProfiles < Activerecord::Migration[4.2] def change create_table :profiles do |t| t.string :cv diff --git a/db/migrate/20161103093520_create_workshops.rb b/db/migrate/20161103093520_create_workshops.rb index e9d67ea2..cfaa288e 100644 --- a/db/migrate/20161103093520_create_workshops.rb +++ b/db/migrate/20161103093520_create_workshops.rb @@ -1,4 +1,4 @@ -class CreateWorkshops < ActiveRecord::Migration +class CreateWorkshops < Activerecord::Migration[4.2] def change create_table :workshops do |t| t.string :name diff --git a/db/migrate/20161103101916_create_applications.rb b/db/migrate/20161103101916_create_applications.rb index c4488303..2b957b15 100644 --- a/db/migrate/20161103101916_create_applications.rb +++ b/db/migrate/20161103101916_create_applications.rb @@ -1,4 +1,4 @@ -class CreateApplications < ActiveRecord::Migration +class CreateApplications < Activerecord::Migration[4.2] def change create_table :applications do |t| t.string :motivation diff --git a/db/migrate/20161103103151_create_requests.rb b/db/migrate/20161103103151_create_requests.rb index 1d682d4d..20af34ad 100644 --- a/db/migrate/20161103103151_create_requests.rb +++ b/db/migrate/20161103103151_create_requests.rb @@ -1,4 +1,4 @@ -class CreateRequests < ActiveRecord::Migration +class CreateRequests < Activerecord::Migration[4.2] def change create_table :requests do |t| t.string :topics diff --git a/db/migrate/20161107124714_rename_applications_to_application_letters.rb b/db/migrate/20161107124714_rename_applications_to_application_letters.rb index 781867c2..8095a6dc 100644 --- a/db/migrate/20161107124714_rename_applications_to_application_letters.rb +++ b/db/migrate/20161107124714_rename_applications_to_application_letters.rb @@ -1,4 +1,4 @@ -class RenameApplicationsToApplicationLetters < ActiveRecord::Migration +class RenameApplicationsToApplicationLetters < Activerecord::Migration[4.2] def change rename_table :applications, :application_letters end diff --git a/db/migrate/20161107131407_make_foreign_keys_not_nullable.rb b/db/migrate/20161107131407_make_foreign_keys_not_nullable.rb index 79641b14..28115788 100644 --- a/db/migrate/20161107131407_make_foreign_keys_not_nullable.rb +++ b/db/migrate/20161107131407_make_foreign_keys_not_nullable.rb @@ -1,4 +1,4 @@ -class MakeForeignKeysNotNullable < ActiveRecord::Migration +class MakeForeignKeysNotNullable < Activerecord::Migration[4.2] def change change_column_null(:application_letters, :user_id, false) change_column_null(:application_letters, :workshop_id, false) diff --git a/db/migrate/20161114195923_add_private_data_to_profile.rb b/db/migrate/20161114195923_add_private_data_to_profile.rb index c55b3d94..72931b65 100644 --- a/db/migrate/20161114195923_add_private_data_to_profile.rb +++ b/db/migrate/20161114195923_add_private_data_to_profile.rb @@ -1,4 +1,4 @@ -class AddPrivateDataToProfile < ActiveRecord::Migration +class AddPrivateDataToProfile < Activerecord::Migration[4.2] def change add_column :profiles, :first_name, :string add_column :profiles, :last_name, :string diff --git a/db/migrate/20161116092838_add_role_to_users.rb b/db/migrate/20161116092838_add_role_to_users.rb index bac1e489..5c294616 100644 --- a/db/migrate/20161116092838_add_role_to_users.rb +++ b/db/migrate/20161116092838_add_role_to_users.rb @@ -1,4 +1,4 @@ -class AddRoleToUsers < ActiveRecord::Migration +class AddRoleToUsers < Activerecord::Migration[4.2] def change add_column :users, :role, :string end diff --git a/db/migrate/20161120123250_add_status_to_application_letter.rb b/db/migrate/20161120123250_add_status_to_application_letter.rb index 4e05a5ff..0ad1631d 100644 --- a/db/migrate/20161120123250_add_status_to_application_letter.rb +++ b/db/migrate/20161120123250_add_status_to_application_letter.rb @@ -1,4 +1,4 @@ -class AddStatusToApplicationLetter < ActiveRecord::Migration +class AddStatusToApplicationLetter < Activerecord::Migration[4.2] def change add_column :application_letters, :status, :boolean end diff --git a/db/migrate/20161122144126_create_application_notes.rb b/db/migrate/20161122144126_create_application_notes.rb index 3c7276db..555d2675 100644 --- a/db/migrate/20161122144126_create_application_notes.rb +++ b/db/migrate/20161122144126_create_application_notes.rb @@ -1,4 +1,4 @@ -class CreateApplicationNotes < ActiveRecord::Migration +class CreateApplicationNotes < Activerecord::Migration[4.2] def change create_table :application_notes do |t| t.text :note diff --git a/db/migrate/20161122151522_add_additional_information_to_application_letter.rb b/db/migrate/20161122151522_add_additional_information_to_application_letter.rb index f89cda45..5968c765 100644 --- a/db/migrate/20161122151522_add_additional_information_to_application_letter.rb +++ b/db/migrate/20161122151522_add_additional_information_to_application_letter.rb @@ -1,4 +1,4 @@ -class AddAdditionalInformationToApplicationLetter < ActiveRecord::Migration +class AddAdditionalInformationToApplicationLetter < Activerecord::Migration[4.2] def change add_column :application_letters, :grade, :integer add_column :application_letters, :experience, :string diff --git a/db/migrate/20161123124500_change_workshop_to_event.rb b/db/migrate/20161123124500_change_workshop_to_event.rb index 67f026ca..facdd161 100644 --- a/db/migrate/20161123124500_change_workshop_to_event.rb +++ b/db/migrate/20161123124500_change_workshop_to_event.rb @@ -1,4 +1,4 @@ -class ChangeWorkshopToEvent < ActiveRecord::Migration +class ChangeWorkshopToEvent < Activerecord::Migration[4.2] def change rename_table :workshops, :events rename_column :application_letters, :workshop_id, :event_id diff --git a/db/migrate/20161125123712_add_date_ranges_to_event.rb b/db/migrate/20161125123712_add_date_ranges_to_event.rb index 4a44c28d..6d99f1b8 100644 --- a/db/migrate/20161125123712_add_date_ranges_to_event.rb +++ b/db/migrate/20161125123712_add_date_ranges_to_event.rb @@ -1,4 +1,4 @@ -class AddDateRangesToEvent < ActiveRecord::Migration +class AddDateRangesToEvent < Activerecord::Migration[4.2] def change create_table :date_ranges do |t| t.date :start_date diff --git a/db/migrate/20161125164958_create_agreement_letters.rb b/db/migrate/20161125164958_create_agreement_letters.rb index 22df2845..5f424784 100644 --- a/db/migrate/20161125164958_create_agreement_letters.rb +++ b/db/migrate/20161125164958_create_agreement_letters.rb @@ -1,4 +1,4 @@ -class CreateAgreementLetters < ActiveRecord::Migration +class CreateAgreementLetters < Activerecord::Migration[4.2] def change create_table :agreement_letters do |t| t.references :user, index: true, foreign_key: true, null:false diff --git a/db/migrate/20161126113138_add_kind_to_events.rb b/db/migrate/20161126113138_add_kind_to_events.rb index 64da9a19..8cc0f7f7 100644 --- a/db/migrate/20161126113138_add_kind_to_events.rb +++ b/db/migrate/20161126113138_add_kind_to_events.rb @@ -1,4 +1,4 @@ -class AddKindToEvents < ActiveRecord::Migration +class AddKindToEvents < Activerecord::Migration[4.2] def change add_column :events, :kind, :integer, default: 0 end diff --git a/db/migrate/20161126190339_add_draft_to_events.rb b/db/migrate/20161126190339_add_draft_to_events.rb index bedb2161..4aef20fd 100644 --- a/db/migrate/20161126190339_add_draft_to_events.rb +++ b/db/migrate/20161126190339_add_draft_to_events.rb @@ -1,4 +1,4 @@ -class AddDraftToEvents < ActiveRecord::Migration +class AddDraftToEvents < Activerecord::Migration[4.2] def change add_column :events, :draft, :boolean end diff --git a/db/migrate/20161129110700_add_organizer_to_workshops.rb b/db/migrate/20161129110700_add_organizer_to_workshops.rb index 6024eef5..e884dde6 100644 --- a/db/migrate/20161129110700_add_organizer_to_workshops.rb +++ b/db/migrate/20161129110700_add_organizer_to_workshops.rb @@ -1,4 +1,4 @@ -class AddOrganizerToWorkshops < ActiveRecord::Migration +class AddOrganizerToWorkshops < Activerecord::Migration[4.2] def self.up add_column :events, :organizer, :string unless column_exists?(:events, :organizer) end diff --git a/db/migrate/20161129111916_add_knowledge_level_to_workshops.rb b/db/migrate/20161129111916_add_knowledge_level_to_workshops.rb index dd3bd601..f67ba6ff 100644 --- a/db/migrate/20161129111916_add_knowledge_level_to_workshops.rb +++ b/db/migrate/20161129111916_add_knowledge_level_to_workshops.rb @@ -1,4 +1,4 @@ -class AddKnowledgeLevelToWorkshops < ActiveRecord::Migration +class AddKnowledgeLevelToWorkshops < Activerecord::Migration[4.2] def self.up add_column :events, :knowledge_level, :string unless column_exists?(:events, :knowledge_level) end diff --git a/db/migrate/20161129120651_add_default_value_to_application_status.rb b/db/migrate/20161129120651_add_default_value_to_application_status.rb index 9ccb7a1c..dec46518 100644 --- a/db/migrate/20161129120651_add_default_value_to_application_status.rb +++ b/db/migrate/20161129120651_add_default_value_to_application_status.rb @@ -1,4 +1,4 @@ -class AddDefaultValueToApplicationStatus < ActiveRecord::Migration +class AddDefaultValueToApplicationStatus < Activerecord::Migration[4.2] def change change_column :application_letters, :status, 'integer USING CAST(status AS integer)', default: 2 change_column_null :application_letters, :status, false, 2 diff --git a/db/migrate/20161129121741_remove_c_vand_email_from_profile.rb b/db/migrate/20161129121741_remove_c_vand_email_from_profile.rb index d1ca6af2..c0a107ef 100644 --- a/db/migrate/20161129121741_remove_c_vand_email_from_profile.rb +++ b/db/migrate/20161129121741_remove_c_vand_email_from_profile.rb @@ -1,4 +1,4 @@ -class RemoveCVandEmailFromProfile < ActiveRecord::Migration +class RemoveCVandEmailFromProfile < Activerecord::Migration[4.2] def change remove_column :profiles, :cv, :string remove_column :profiles, :email, :string diff --git a/db/migrate/20161129131315_rename_tutor_to_coach.rb b/db/migrate/20161129131315_rename_tutor_to_coach.rb index 9f142c78..81581e4d 100644 --- a/db/migrate/20161129131315_rename_tutor_to_coach.rb +++ b/db/migrate/20161129131315_rename_tutor_to_coach.rb @@ -1,4 +1,4 @@ -class RenameTutorToCoach < ActiveRecord::Migration +class RenameTutorToCoach < Activerecord::Migration[4.2] def up execute "UPDATE users SET role = 'coach' WHERE role = 'tutor'" end diff --git a/db/migrate/20161204205355_add_application_deadline_to_events.rb b/db/migrate/20161204205355_add_application_deadline_to_events.rb index 5852b099..e7d835fb 100644 --- a/db/migrate/20161204205355_add_application_deadline_to_events.rb +++ b/db/migrate/20161204205355_add_application_deadline_to_events.rb @@ -1,4 +1,4 @@ -class AddApplicationDeadlineToEvents < ActiveRecord::Migration +class AddApplicationDeadlineToEvents < Activerecord::Migration[4.2] def change add_column :events, :application_deadline, :date end diff --git a/db/migrate/20161207094400_add_application_status_locked_to_events.rb b/db/migrate/20161207094400_add_application_status_locked_to_events.rb index fcb0c044..55871426 100644 --- a/db/migrate/20161207094400_add_application_status_locked_to_events.rb +++ b/db/migrate/20161207094400_add_application_status_locked_to_events.rb @@ -1,4 +1,4 @@ -class AddApplicationStatusLockedToEvents < ActiveRecord::Migration +class AddApplicationStatusLockedToEvents < Activerecord::Migration[4.2] def change add_column :events, :application_status_locked, :boolean end diff --git a/db/migrate/20161209180054_remove_active_from_event.rb b/db/migrate/20161209180054_remove_active_from_event.rb index 286aea27..de247c82 100644 --- a/db/migrate/20161209180054_remove_active_from_event.rb +++ b/db/migrate/20161209180054_remove_active_from_event.rb @@ -1,4 +1,4 @@ -class RemoveActiveFromEvent < ActiveRecord::Migration +class RemoveActiveFromEvent < Activerecord::Migration[4.2] def change remove_column :events, :active, :boolean end diff --git a/db/migrate/20161222154024_remove_name_from_users.rb b/db/migrate/20161222154024_remove_name_from_users.rb index 623cc753..0f315787 100644 --- a/db/migrate/20161222154024_remove_name_from_users.rb +++ b/db/migrate/20161222154024_remove_name_from_users.rb @@ -1,4 +1,4 @@ -class RemoveNameFromUsers < ActiveRecord::Migration +class RemoveNameFromUsers < Activerecord::Migration[4.2] def change remove_column :users, :name, :string end diff --git a/db/migrate/20170104135212_add_fields_to_requests.rb b/db/migrate/20170104135212_add_fields_to_requests.rb index f6dca653..546996e4 100644 --- a/db/migrate/20170104135212_add_fields_to_requests.rb +++ b/db/migrate/20170104135212_add_fields_to_requests.rb @@ -1,4 +1,4 @@ -class AddFieldsToRequests < ActiveRecord::Migration +class AddFieldsToRequests < Activerecord::Migration[4.2] def change remove_column :requests, :topics, :string remove_column :requests, :user_id, :integer diff --git a/db/migrate/20170107140419_create_email_templates.rb b/db/migrate/20170107140419_create_email_templates.rb index 46a732df..eddf90c4 100644 --- a/db/migrate/20170107140419_create_email_templates.rb +++ b/db/migrate/20170107140419_create_email_templates.rb @@ -1,4 +1,4 @@ -class CreateEmailTemplates < ActiveRecord::Migration +class CreateEmailTemplates < Activerecord::Migration[4.2] def change create_table :email_templates do |t| t.integer :status diff --git a/db/migrate/20170108122417_add_status_to_requests.rb b/db/migrate/20170108122417_add_status_to_requests.rb index 394ca1df..b2645ed8 100644 --- a/db/migrate/20170108122417_add_status_to_requests.rb +++ b/db/migrate/20170108122417_add_status_to_requests.rb @@ -1,4 +1,4 @@ -class AddStatusToRequests < ActiveRecord::Migration +class AddStatusToRequests < Activerecord::Migration[4.2] def change add_column :requests, :status, :integer, default: 0 end diff --git a/db/migrate/20170110132223_add_unlimited_participants_to_events.rb b/db/migrate/20170110132223_add_unlimited_participants_to_events.rb index 68a1fa43..00c7b793 100644 --- a/db/migrate/20170110132223_add_unlimited_participants_to_events.rb +++ b/db/migrate/20170110132223_add_unlimited_participants_to_events.rb @@ -1,4 +1,4 @@ -class AddUnlimitedParticipantsToEvents < ActiveRecord::Migration +class AddUnlimitedParticipantsToEvents < Activerecord::Migration[4.2] def change add_column :events, :participants_are_unlimited, :boolean, default: false end diff --git a/db/migrate/20170111135212_rename_draft_to_published.rb b/db/migrate/20170111135212_rename_draft_to_published.rb index bd354ef6..7026ad00 100644 --- a/db/migrate/20170111135212_rename_draft_to_published.rb +++ b/db/migrate/20170111135212_rename_draft_to_published.rb @@ -1,4 +1,4 @@ -class RenameDraftToPublished < ActiveRecord::Migration +class RenameDraftToPublished < Activerecord::Migration[4.2] def change reversible do |dir| dir.up do diff --git a/db/migrate/20170113083747_add_custom_application_fields_to_event.rb b/db/migrate/20170113083747_add_custom_application_fields_to_event.rb index dd708f11..7a01287a 100644 --- a/db/migrate/20170113083747_add_custom_application_fields_to_event.rb +++ b/db/migrate/20170113083747_add_custom_application_fields_to_event.rb @@ -1,4 +1,4 @@ -class AddCustomApplicationFieldsToEvent < ActiveRecord::Migration +class AddCustomApplicationFieldsToEvent < Activerecord::Migration[4.2] def change add_column :events, :custom_application_fields, :text end diff --git a/db/migrate/20170114132153_change_address_fields.rb b/db/migrate/20170114132153_change_address_fields.rb index 1b1fc3bc..17baec87 100644 --- a/db/migrate/20170114132153_change_address_fields.rb +++ b/db/migrate/20170114132153_change_address_fields.rb @@ -1,4 +1,4 @@ -class ChangeAddressFields < ActiveRecord::Migration +class ChangeAddressFields < Activerecord::Migration[4.2] def change rename_column :requests, :address, :street add_column :requests, :zip_code_city, :string diff --git a/db/migrate/20170116093536_add_custom_application_fields_to_application_letters.rb b/db/migrate/20170116093536_add_custom_application_fields_to_application_letters.rb index fc373b18..b0668047 100644 --- a/db/migrate/20170116093536_add_custom_application_fields_to_application_letters.rb +++ b/db/migrate/20170116093536_add_custom_application_fields_to_application_letters.rb @@ -1,4 +1,4 @@ -class AddCustomApplicationFieldsToApplicationLetters < ActiveRecord::Migration +class AddCustomApplicationFieldsToApplicationLetters < Activerecord::Migration[4.2] def change add_column :application_letters, :custom_application_fields, :text end diff --git a/db/migrate/20170118161954_rename_vegeterian_to_vegetarian.rb b/db/migrate/20170118161954_rename_vegeterian_to_vegetarian.rb index 65b22831..51abdc72 100644 --- a/db/migrate/20170118161954_rename_vegeterian_to_vegetarian.rb +++ b/db/migrate/20170118161954_rename_vegeterian_to_vegetarian.rb @@ -1,4 +1,4 @@ -class RenameVegeterianToVegetarian < ActiveRecord::Migration +class RenameVegeterianToVegetarian < Activerecord::Migration[4.2] def change rename_column :application_letters, :vegeterian, :vegetarian end diff --git a/db/migrate/20170119223355_add_contact_person_to_requests.rb b/db/migrate/20170119223355_add_contact_person_to_requests.rb index a4256219..07cc242b 100644 --- a/db/migrate/20170119223355_add_contact_person_to_requests.rb +++ b/db/migrate/20170119223355_add_contact_person_to_requests.rb @@ -1,4 +1,4 @@ -class AddContactPersonToRequests < ActiveRecord::Migration +class AddContactPersonToRequests < Activerecord::Migration[4.2] def change add_column :requests, :contact_person, :string end diff --git a/db/migrate/20170120183139_change_request_description_to_textfield.rb b/db/migrate/20170120183139_change_request_description_to_textfield.rb index 6d43dc44..370e59d1 100644 --- a/db/migrate/20170120183139_change_request_description_to_textfield.rb +++ b/db/migrate/20170120183139_change_request_description_to_textfield.rb @@ -1,4 +1,4 @@ -class ChangeRequestDescriptionToTextfield < ActiveRecord::Migration +class ChangeRequestDescriptionToTextfield < Activerecord::Migration[4.2] def change change_column :events, :description, :text end diff --git a/db/migrate/20170122191752_create_participant_groups.rb b/db/migrate/20170122191752_create_participant_groups.rb index 7f735fd7..9c22f05b 100644 --- a/db/migrate/20170122191752_create_participant_groups.rb +++ b/db/migrate/20170122191752_create_participant_groups.rb @@ -1,4 +1,4 @@ -class CreateParticipantGroups < ActiveRecord::Migration +class CreateParticipantGroups < Activerecord::Migration[4.2] def change create_table :participant_groups do |t| t.references :user, index: true, foreign_key: true diff --git a/db/migrate/20170123161527_add_hidden_to_event.rb b/db/migrate/20170123161527_add_hidden_to_event.rb index ae9ac368..ea2a9cb5 100644 --- a/db/migrate/20170123161527_add_hidden_to_event.rb +++ b/db/migrate/20170123161527_add_hidden_to_event.rb @@ -1,4 +1,4 @@ -class AddHiddenToEvent < ActiveRecord::Migration +class AddHiddenToEvent < Activerecord::Migration[4.2] def change add_column :events, :hidden, :boolean end diff --git a/db/migrate/20170123205418_add_notes_to_requests.rb b/db/migrate/20170123205418_add_notes_to_requests.rb index 8d47ced6..cfcef0a0 100644 --- a/db/migrate/20170123205418_add_notes_to_requests.rb +++ b/db/migrate/20170123205418_add_notes_to_requests.rb @@ -1,4 +1,4 @@ -class AddNotesToRequests < ActiveRecord::Migration +class AddNotesToRequests < Activerecord::Migration[4.2] def change add_column :requests, :notes, :text end diff --git a/db/migrate/20170124225558_add_annotation_to_application_letters.rb b/db/migrate/20170124225558_add_annotation_to_application_letters.rb index 7c4ee0d0..cd55e39a 100644 --- a/db/migrate/20170124225558_add_annotation_to_application_letters.rb +++ b/db/migrate/20170124225558_add_annotation_to_application_letters.rb @@ -1,4 +1,4 @@ -class AddAnnotationToApplicationLetters < ActiveRecord::Migration +class AddAnnotationToApplicationLetters < Activerecord::Migration[4.2] def change add_column :application_letters, :annotation, :text end diff --git a/db/migrate/20170125201341_add_image_to_events.rb b/db/migrate/20170125201341_add_image_to_events.rb index 818ecb51..fe1818f6 100644 --- a/db/migrate/20170125201341_add_image_to_events.rb +++ b/db/migrate/20170125201341_add_image_to_events.rb @@ -1,4 +1,4 @@ -class AddImageToEvents < ActiveRecord::Migration +class AddImageToEvents < Activerecord::Migration[4.2] def change add_column :events, :image, :string end diff --git a/db/migrate/20170128122851_add_discovery_of_site_to_profiles.rb b/db/migrate/20170128122851_add_discovery_of_site_to_profiles.rb index 18dab880..b614d0db 100644 --- a/db/migrate/20170128122851_add_discovery_of_site_to_profiles.rb +++ b/db/migrate/20170128122851_add_discovery_of_site_to_profiles.rb @@ -1,4 +1,4 @@ -class AddDiscoveryOfSiteToProfiles < ActiveRecord::Migration +class AddDiscoveryOfSiteToProfiles < Activerecord::Migration[4.2] def change add_column :profiles, :discovery_of_site, :text end diff --git a/db/migrate/20170201110130_remove_school_from_profile.rb b/db/migrate/20170201110130_remove_school_from_profile.rb index 7e95c32c..a5bf6b32 100644 --- a/db/migrate/20170201110130_remove_school_from_profile.rb +++ b/db/migrate/20170201110130_remove_school_from_profile.rb @@ -1,4 +1,4 @@ -class RemoveSchoolFromProfile < ActiveRecord::Migration +class RemoveSchoolFromProfile < Activerecord::Migration[4.2] def change remove_column :profiles, :school, :string remove_column :profiles, :graduates_school_in, :string diff --git a/db/migrate/20170201115658_remove_experience_from_application_letters.rb b/db/migrate/20170201115658_remove_experience_from_application_letters.rb index 26d35ae1..c94847fc 100644 --- a/db/migrate/20170201115658_remove_experience_from_application_letters.rb +++ b/db/migrate/20170201115658_remove_experience_from_application_letters.rb @@ -1,4 +1,4 @@ -class RemoveExperienceFromApplicationLetters < ActiveRecord::Migration +class RemoveExperienceFromApplicationLetters < Activerecord::Migration[4.2] def change remove_column :application_letters, :experience, :string end diff --git a/db/migrate/20170201131446_add_default_value_to_published.rb b/db/migrate/20170201131446_add_default_value_to_published.rb index 547fad7d..5d6a2e12 100644 --- a/db/migrate/20170201131446_add_default_value_to_published.rb +++ b/db/migrate/20170201131446_add_default_value_to_published.rb @@ -1,4 +1,4 @@ -class AddDefaultValueToPublished < ActiveRecord::Migration +class AddDefaultValueToPublished < Activerecord::Migration[4.2] def up change_column :events, :published, :boolean, :default => false end diff --git a/db/migrate/20170201132359_add_default_value_to_hidden.rb b/db/migrate/20170201132359_add_default_value_to_hidden.rb index 374d841a..168a872c 100644 --- a/db/migrate/20170201132359_add_default_value_to_hidden.rb +++ b/db/migrate/20170201132359_add_default_value_to_hidden.rb @@ -1,4 +1,4 @@ -class AddDefaultValueToHidden < ActiveRecord::Migration +class AddDefaultValueToHidden < Activerecord::Migration[4.2] def up change_column :events, :hidden, :boolean, :default => false end diff --git a/db/migrate/20170201141415_remove_kind_from_events.rb b/db/migrate/20170201141415_remove_kind_from_events.rb index b825cc13..6c22f478 100644 --- a/db/migrate/20170201141415_remove_kind_from_events.rb +++ b/db/migrate/20170201141415_remove_kind_from_events.rb @@ -1,4 +1,4 @@ -class RemoveKindFromEvents < ActiveRecord::Migration +class RemoveKindFromEvents < Activerecord::Migration[4.2] def change remove_column :events, :kind, :string end diff --git a/db/migrate/20170201150603_remove_participants_are_unlimited_from_events.rb b/db/migrate/20170201150603_remove_participants_are_unlimited_from_events.rb index edd2fdb6..e0f8f00b 100644 --- a/db/migrate/20170201150603_remove_participants_are_unlimited_from_events.rb +++ b/db/migrate/20170201150603_remove_participants_are_unlimited_from_events.rb @@ -1,4 +1,4 @@ -class RemoveParticipantsAreUnlimitedFromEvents < ActiveRecord::Migration +class RemoveParticipantsAreUnlimitedFromEvents < Activerecord::Migration[4.2] def change remove_column :events, :participants_are_unlimited, :boolean end diff --git a/db/migrate/20170201154540_remove_allergic_from_application_letter.rb b/db/migrate/20170201154540_remove_allergic_from_application_letter.rb index a8d4611b..240c326c 100644 --- a/db/migrate/20170201154540_remove_allergic_from_application_letter.rb +++ b/db/migrate/20170201154540_remove_allergic_from_application_letter.rb @@ -1,4 +1,4 @@ -class RemoveAllergicFromApplicationLetter < ActiveRecord::Migration +class RemoveAllergicFromApplicationLetter < Activerecord::Migration[4.2] def change remove_column :application_letters, :allergic end diff --git a/db/migrate/20170201201804_remove_application_status_locked_from_events.rb b/db/migrate/20170201201804_remove_application_status_locked_from_events.rb index af9e7035..7782da07 100644 --- a/db/migrate/20170201201804_remove_application_status_locked_from_events.rb +++ b/db/migrate/20170201201804_remove_application_status_locked_from_events.rb @@ -1,4 +1,4 @@ -class RemoveApplicationStatusLockedFromEvents < ActiveRecord::Migration +class RemoveApplicationStatusLockedFromEvents < Activerecord::Migration[4.2] def change remove_column :events, :application_status_locked, :boolean end diff --git a/db/migrate/20170201201819_add_rejections_have_been_sent_to_events.rb b/db/migrate/20170201201819_add_rejections_have_been_sent_to_events.rb index 3db4d7b3..e4c5ea50 100644 --- a/db/migrate/20170201201819_add_rejections_have_been_sent_to_events.rb +++ b/db/migrate/20170201201819_add_rejections_have_been_sent_to_events.rb @@ -1,4 +1,4 @@ -class AddRejectionsHaveBeenSentToEvents < ActiveRecord::Migration +class AddRejectionsHaveBeenSentToEvents < Activerecord::Migration[4.2] def change add_column :events, :rejections_have_been_sent, :boolean, default: false end diff --git a/db/migrate/20170201201932_add_acceptances_have_been_sent_to_events.rb b/db/migrate/20170201201932_add_acceptances_have_been_sent_to_events.rb index a8748113..5195afe8 100644 --- a/db/migrate/20170201201932_add_acceptances_have_been_sent_to_events.rb +++ b/db/migrate/20170201201932_add_acceptances_have_been_sent_to_events.rb @@ -1,4 +1,4 @@ -class AddAcceptancesHaveBeenSentToEvents < ActiveRecord::Migration +class AddAcceptancesHaveBeenSentToEvents < Activerecord::Migration[4.2] def change add_column :events, :acceptances_have_been_sent, :boolean, default: false end diff --git a/db/migrate/20170203150152_remove_fields_from_application.rb b/db/migrate/20170203150152_remove_fields_from_application.rb index e2a20943..b29ba943 100644 --- a/db/migrate/20170203150152_remove_fields_from_application.rb +++ b/db/migrate/20170203150152_remove_fields_from_application.rb @@ -1,4 +1,4 @@ -class RemoveFieldsFromApplication < ActiveRecord::Migration +class RemoveFieldsFromApplication < Activerecord::Migration[4.2] def change remove_column :application_letters, :grade, :integer remove_column :application_letters, :coding_skills, :string diff --git a/db/migrate/20170203180638_add_status_notification_sent_to_application_letters.rb b/db/migrate/20170203180638_add_status_notification_sent_to_application_letters.rb index 3eb46f1e..32e04be2 100644 --- a/db/migrate/20170203180638_add_status_notification_sent_to_application_letters.rb +++ b/db/migrate/20170203180638_add_status_notification_sent_to_application_letters.rb @@ -1,4 +1,4 @@ -class AddStatusNotificationSentToApplicationLetters < ActiveRecord::Migration +class AddStatusNotificationSentToApplicationLetters < Activerecord::Migration[4.2] def change add_column :application_letters, :status_notification_sent, :boolean, default: false, null: false end diff --git a/db/migrate/20170207133819_add_custom_image_to_events.rb b/db/migrate/20170207133819_add_custom_image_to_events.rb index 4aa1d4ef..f6f580b1 100644 --- a/db/migrate/20170207133819_add_custom_image_to_events.rb +++ b/db/migrate/20170207133819_add_custom_image_to_events.rb @@ -1,4 +1,4 @@ -class AddCustomImageToEvents < ActiveRecord::Migration +class AddCustomImageToEvents < Activerecord::Migration[4.2] def change add_column :events, :custom_image, :string end diff --git a/db/migrate/20170605080836_add_omniauth_to_users.rb b/db/migrate/20170605080836_add_omniauth_to_users.rb index 9c23c476..20fa044d 100644 --- a/db/migrate/20170605080836_add_omniauth_to_users.rb +++ b/db/migrate/20170605080836_add_omniauth_to_users.rb @@ -1,4 +1,4 @@ -class AddOmniauthToUsers < ActiveRecord::Migration +class AddOmniauthToUsers < Activerecord::Migration[4.2] def change add_column :users, :provider, :string add_column :users, :uid, :string diff --git a/db/migrate/20180423164856_add_grade_to_requests.rb b/db/migrate/20180423164856_add_grade_to_requests.rb index 412304e2..bf7b0038 100644 --- a/db/migrate/20180423164856_add_grade_to_requests.rb +++ b/db/migrate/20180423164856_add_grade_to_requests.rb @@ -1,4 +1,4 @@ -class AddGradeToRequests < ActiveRecord::Migration +class AddGradeToRequests < Activerecord::Migration[4.2] def change add_column :requests, :grade, :string end diff --git a/db/migrate/20180423170641_rename_address.rb b/db/migrate/20180423170641_rename_address.rb index 8ea542df..887fe148 100644 --- a/db/migrate/20180423170641_rename_address.rb +++ b/db/migrate/20180423170641_rename_address.rb @@ -1,4 +1,4 @@ -class RenameAddress < ActiveRecord::Migration +class RenameAddress < Activerecord::Migration[4.2] def change rename_column :requests, :street, :school_street rename_column :requests, :zip_code_city, :school_zip_code_city