From 6f627d34d69471c716477a6d2385bb9e647d7a38 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sun, 28 Apr 2019 11:56:16 +0300 Subject: [PATCH] Inherit from ActiveRecord::Migration[4.2] --- db/migrate/20140728105159_devise_create_users.rb | 2 +- db/migrate/20140807103632_create_speaker_profiles.rb | 2 +- .../20140807103805_remove_speaker_profile_columns_from_users.rb | 2 +- .../20140807104059_add_user_reference_to_speaker_profiles.rb | 2 +- db/migrate/20140810162730_create_conferences.rb | 2 +- db/migrate/20140810172123_create_tracks.rb | 2 +- db/migrate/20140810174338_create_events.rb | 2 +- ...1121527_rename_picture_url_to_picture_in_speaker_profiles.rb | 2 +- .../20140901103859_add_translation_tables_to_conferences.rb | 2 +- db/migrate/20140902144335_add_admin_flag_to_users.rb | 2 +- db/migrate/20140906151300_add_description_to_tracks.rb | 2 +- db/migrate/20140906151433_add_translation_tables_to_tracks.rb | 2 +- db/migrate/20141010142514_change_event_state_defaults.rb | 2 +- db/migrate/20141012100900_create_halls.rb | 2 +- db/migrate/20141012101004_create_slots.rb | 2 +- .../20141012110528_add_acceptance_email_fields_to_events.rb | 2 +- .../20141013134153_create_events_to_speakers_join_table.rb | 2 +- .../20141014181014_add_call_for_papers_status_to_conferences.rb | 2 +- db/migrate/20141105100105_create_propositions.rb | 2 +- .../20141105100827_create_propositions_for_existing_events.rb | 2 +- ...0408204739_remove_not_null_constraint_on_conference_title.rb | 2 +- ...4855_remove_not_null_constraint_on_conference_description.rb | 2 +- .../20150408205015_remove_not_null_constraint_on_track_name.rb | 2 +- db/migrate/20150416232523_create_event_types.rb | 2 +- ...20150416234411_create_event_types_for_all_existing_events.rb | 2 +- db/migrate/20150417002119_add_event_type_to_events.rb | 2 +- .../20150417002233_populate_event_type_of_existing_events.rb | 2 +- .../20150417004249_remove_unneeded_columns_from_events.rb | 2 +- db/migrate/20150420154042_create_call_for_participations.rb | 2 +- .../20150524160616_create_call_for_participation_records.rb | 2 +- ...150530181525_rename_speaker_profiles_to_personal_profiles.rb | 2 +- .../20150530182514_add_conference_id_to_personal_profiles.rb | 2 +- ...0150530182857_populate_conference_id_in_personal_profiles.rb | 2 +- db/migrate/20150712103000_add_slug_to_conferences.rb | 2 +- db/migrate/20150719114546_remove_slug_from_conferences.rb | 2 +- db/migrate/20150719170422_add_description_to_event_types.rb | 2 +- db/migrate/20150729135346_create_participations.rb | 2 +- db/migrate/20150729135818_create_participation_records.rb | 2 +- .../20150729145831_drop_join_table_events_sepaker_profiles.rb | 2 +- db/migrate/20150805161830_add_language_to_users.rb | 2 +- db/migrate/20150814202053_add_conference_id_to_events.rb | 2 +- db/migrate/20150814203341_add_track_id_to_events.rb | 2 +- ...500_remove_proposition_accepting_fields_from_propositions.rb | 2 +- db/migrate/20150815030159_add_host_name_to_conferences.rb | 2 +- db/migrate/20150819205900_add_time_limits_to_event_types.rb | 2 +- .../20150819213202_drop_default_value_for_length_in_events.rb | 2 +- db/migrate/20150901074818_create_volunteer_teams.rb | 2 +- db/migrate/20150901091814_create_volunteerships.rb | 2 +- db/migrate/20151018105303_add_css_class_to_tracks.rb | 2 +- db/migrate/20151018105806_add_css_style_string_to_tracks.rb | 2 +- db/migrate/20151018105933_add_foreground_color_to_tracks.rb | 2 +- db/migrate/20151018211611_add_confirmed_at_to_propositions.rb | 2 +- ...18211712_populate_confirmed_at_of_propositions_for_events.rb | 2 +- db/migrate/20151018212026_remove_confirmed_at_from_events.rb | 2 +- db/migrate/20151020071227_add_translations_to_halls.rb | 2 +- db/migrate/20151021162134_create_volunteers.rb | 2 +- ...20151021183039_create_join_table_volunteer_volunteer_team.rb | 2 +- db/migrate/20151021185100_add_conference_id_to_volunteers.rb | 2 +- db/migrate/20151021190854_add_language_to_volunteers.rb | 2 +- .../20160705153038_add_planned_cfp_end_date_to_conferences.rb | 2 +- db/migrate/20161010163747_add_vote_data_to_conferences.rb | 2 +- db/migrate/20161010170711_add_vote_data_to_events.rb | 2 +- ...1005219_set_minimal_and_maximal_times_for_all_event_types.rb | 2 +- db/migrate/20161011005420_add_descriptions_for_all_events.rb | 2 +- db/migrate/20161012185931_create_conflict_counts.rb | 2 +- db/migrate/20161015023007_add_participants_view.rb | 2 +- db/migrate/20171022182011_create_feedbacks.rb | 2 +- 67 files changed, 67 insertions(+), 67 deletions(-) diff --git a/db/migrate/20140728105159_devise_create_users.rb b/db/migrate/20140728105159_devise_create_users.rb index 2ed6814..71debfd 100644 --- a/db/migrate/20140728105159_devise_create_users.rb +++ b/db/migrate/20140728105159_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/20140807103632_create_speaker_profiles.rb b/db/migrate/20140807103632_create_speaker_profiles.rb index 9abfa88..e807530 100644 --- a/db/migrate/20140807103632_create_speaker_profiles.rb +++ b/db/migrate/20140807103632_create_speaker_profiles.rb @@ -1,4 +1,4 @@ -class CreateSpeakerProfiles < ActiveRecord::Migration +class CreateSpeakerProfiles < ActiveRecord::Migration[4.2] def change create_table :speaker_profiles do |t| t.string :first_name diff --git a/db/migrate/20140807103805_remove_speaker_profile_columns_from_users.rb b/db/migrate/20140807103805_remove_speaker_profile_columns_from_users.rb index 0845879..31dc6eb 100644 --- a/db/migrate/20140807103805_remove_speaker_profile_columns_from_users.rb +++ b/db/migrate/20140807103805_remove_speaker_profile_columns_from_users.rb @@ -1,4 +1,4 @@ -class RemoveSpeakerProfileColumnsFromUsers < ActiveRecord::Migration +class RemoveSpeakerProfileColumnsFromUsers < ActiveRecord::Migration[4.2] def change remove_column :users, :first_name, :string remove_column :users, :last_name, :string diff --git a/db/migrate/20140807104059_add_user_reference_to_speaker_profiles.rb b/db/migrate/20140807104059_add_user_reference_to_speaker_profiles.rb index fa4ed9c..8196d1a 100644 --- a/db/migrate/20140807104059_add_user_reference_to_speaker_profiles.rb +++ b/db/migrate/20140807104059_add_user_reference_to_speaker_profiles.rb @@ -1,4 +1,4 @@ -class AddUserReferenceToSpeakerProfiles < ActiveRecord::Migration +class AddUserReferenceToSpeakerProfiles < ActiveRecord::Migration[4.2] def change add_reference :speaker_profiles, :user, index: true end diff --git a/db/migrate/20140810162730_create_conferences.rb b/db/migrate/20140810162730_create_conferences.rb index 55df8ef..e9767be 100644 --- a/db/migrate/20140810162730_create_conferences.rb +++ b/db/migrate/20140810162730_create_conferences.rb @@ -1,4 +1,4 @@ -class CreateConferences < ActiveRecord::Migration +class CreateConferences < ActiveRecord::Migration[4.2] def change create_table :conferences do |t| t.string :title, null: false diff --git a/db/migrate/20140810172123_create_tracks.rb b/db/migrate/20140810172123_create_tracks.rb index 8bd3852..31b8253 100644 --- a/db/migrate/20140810172123_create_tracks.rb +++ b/db/migrate/20140810172123_create_tracks.rb @@ -1,4 +1,4 @@ -class CreateTracks < ActiveRecord::Migration +class CreateTracks < ActiveRecord::Migration[4.2] def change create_table :tracks do |t| t.string :name, null: false diff --git a/db/migrate/20140810174338_create_events.rb b/db/migrate/20140810174338_create_events.rb index c88fe1b..94304df 100644 --- a/db/migrate/20140810174338_create_events.rb +++ b/db/migrate/20140810174338_create_events.rb @@ -1,4 +1,4 @@ -class CreateEvents < ActiveRecord::Migration +class CreateEvents < ActiveRecord::Migration[4.2] def change create_table :events do |t| t.string :title, null: false diff --git a/db/migrate/20140831121527_rename_picture_url_to_picture_in_speaker_profiles.rb b/db/migrate/20140831121527_rename_picture_url_to_picture_in_speaker_profiles.rb index fc253c3..9b59967 100644 --- a/db/migrate/20140831121527_rename_picture_url_to_picture_in_speaker_profiles.rb +++ b/db/migrate/20140831121527_rename_picture_url_to_picture_in_speaker_profiles.rb @@ -1,4 +1,4 @@ -class RenamePictureUrlToPictureInSpeakerProfiles < ActiveRecord::Migration +class RenamePictureUrlToPictureInSpeakerProfiles < ActiveRecord::Migration[4.2] def change rename_column :speaker_profiles, :photo_url, :picture end diff --git a/db/migrate/20140901103859_add_translation_tables_to_conferences.rb b/db/migrate/20140901103859_add_translation_tables_to_conferences.rb index 4848e4b..ab2dcbe 100644 --- a/db/migrate/20140901103859_add_translation_tables_to_conferences.rb +++ b/db/migrate/20140901103859_add_translation_tables_to_conferences.rb @@ -1,4 +1,4 @@ -class AddTranslationTablesToConferences < ActiveRecord::Migration +class AddTranslationTablesToConferences < ActiveRecord::Migration[4.2] def up Conference.create_translation_table!({ :title => :string, diff --git a/db/migrate/20140902144335_add_admin_flag_to_users.rb b/db/migrate/20140902144335_add_admin_flag_to_users.rb index 557aceb..4640ad1 100644 --- a/db/migrate/20140902144335_add_admin_flag_to_users.rb +++ b/db/migrate/20140902144335_add_admin_flag_to_users.rb @@ -1,4 +1,4 @@ -class AddAdminFlagToUsers < ActiveRecord::Migration +class AddAdminFlagToUsers < ActiveRecord::Migration[4.2] def change add_column :users, :admin, :boolean, null: false, default: false end diff --git a/db/migrate/20140906151300_add_description_to_tracks.rb b/db/migrate/20140906151300_add_description_to_tracks.rb index e27dc9f..4b20405 100644 --- a/db/migrate/20140906151300_add_description_to_tracks.rb +++ b/db/migrate/20140906151300_add_description_to_tracks.rb @@ -1,4 +1,4 @@ -class AddDescriptionToTracks < ActiveRecord::Migration +class AddDescriptionToTracks < ActiveRecord::Migration[4.2] def change add_column :tracks, :description, :text end diff --git a/db/migrate/20140906151433_add_translation_tables_to_tracks.rb b/db/migrate/20140906151433_add_translation_tables_to_tracks.rb index 28e3d8b..afbb5cd 100644 --- a/db/migrate/20140906151433_add_translation_tables_to_tracks.rb +++ b/db/migrate/20140906151433_add_translation_tables_to_tracks.rb @@ -1,4 +1,4 @@ -class AddTranslationTablesToTracks < ActiveRecord::Migration +class AddTranslationTablesToTracks < ActiveRecord::Migration[4.2] def up Track.create_translation_table!({ name: :string, diff --git a/db/migrate/20141010142514_change_event_state_defaults.rb b/db/migrate/20141010142514_change_event_state_defaults.rb index 6efaca5..82476ce 100644 --- a/db/migrate/20141010142514_change_event_state_defaults.rb +++ b/db/migrate/20141010142514_change_event_state_defaults.rb @@ -1,4 +1,4 @@ -class ChangeEventStateDefaults < ActiveRecord::Migration +class ChangeEventStateDefaults < ActiveRecord::Migration[4.2] def up execute 'UPDATE events SET state = 0' change_column :events, :state, :integer, null: false, default: 0 diff --git a/db/migrate/20141012100900_create_halls.rb b/db/migrate/20141012100900_create_halls.rb index 6825079..56e7bf2 100644 --- a/db/migrate/20141012100900_create_halls.rb +++ b/db/migrate/20141012100900_create_halls.rb @@ -1,4 +1,4 @@ -class CreateHalls < ActiveRecord::Migration +class CreateHalls < ActiveRecord::Migration[4.2] def change create_table :halls do |t| t.references :conference, index: true diff --git a/db/migrate/20141012101004_create_slots.rb b/db/migrate/20141012101004_create_slots.rb index 379cd0b..f3e51ad 100644 --- a/db/migrate/20141012101004_create_slots.rb +++ b/db/migrate/20141012101004_create_slots.rb @@ -1,4 +1,4 @@ -class CreateSlots < ActiveRecord::Migration +class CreateSlots < ActiveRecord::Migration[4.2] def change create_table :slots do |t| t.references :hall, index: true diff --git a/db/migrate/20141012110528_add_acceptance_email_fields_to_events.rb b/db/migrate/20141012110528_add_acceptance_email_fields_to_events.rb index 7416a57..7be0918 100644 --- a/db/migrate/20141012110528_add_acceptance_email_fields_to_events.rb +++ b/db/migrate/20141012110528_add_acceptance_email_fields_to_events.rb @@ -1,4 +1,4 @@ -class AddAcceptanceEmailFieldsToEvents < ActiveRecord::Migration +class AddAcceptanceEmailFieldsToEvents < ActiveRecord::Migration[4.2] def change add_column :events, :acceptance_notification_sent_at, :timestamp add_column :events, :confirmed_at, :timestamp diff --git a/db/migrate/20141013134153_create_events_to_speakers_join_table.rb b/db/migrate/20141013134153_create_events_to_speakers_join_table.rb index a2354c4..87d55f6 100644 --- a/db/migrate/20141013134153_create_events_to_speakers_join_table.rb +++ b/db/migrate/20141013134153_create_events_to_speakers_join_table.rb @@ -1,4 +1,4 @@ -class CreateEventsToSpeakersJoinTable < ActiveRecord::Migration +class CreateEventsToSpeakersJoinTable < ActiveRecord::Migration[4.2] def up create_join_table :events, :speaker_profiles Event.all.each do |event| diff --git a/db/migrate/20141014181014_add_call_for_papers_status_to_conferences.rb b/db/migrate/20141014181014_add_call_for_papers_status_to_conferences.rb index 5bebc5b..d9bea86 100644 --- a/db/migrate/20141014181014_add_call_for_papers_status_to_conferences.rb +++ b/db/migrate/20141014181014_add_call_for_papers_status_to_conferences.rb @@ -1,4 +1,4 @@ -class AddCallForPapersStatusToConferences < ActiveRecord::Migration +class AddCallForPapersStatusToConferences < ActiveRecord::Migration[4.2] def change add_column :conferences, :call_for_papers_open, :boolean end diff --git a/db/migrate/20141105100105_create_propositions.rb b/db/migrate/20141105100105_create_propositions.rb index 09d62e4..27db085 100644 --- a/db/migrate/20141105100105_create_propositions.rb +++ b/db/migrate/20141105100105_create_propositions.rb @@ -1,4 +1,4 @@ -class CreatePropositions < ActiveRecord::Migration +class CreatePropositions < ActiveRecord::Migration[4.2] def change create_table :propositions do |t| t.references :proposer, index: true diff --git a/db/migrate/20141105100827_create_propositions_for_existing_events.rb b/db/migrate/20141105100827_create_propositions_for_existing_events.rb index 0dddf10..2f25b13 100644 --- a/db/migrate/20141105100827_create_propositions_for_existing_events.rb +++ b/db/migrate/20141105100827_create_propositions_for_existing_events.rb @@ -1,4 +1,4 @@ -class CreatePropositionsForExistingEvents < ActiveRecord::Migration +class CreatePropositionsForExistingEvents < ActiveRecord::Migration[4.2] def up events = execute 'SELECT * FROM events' diff --git a/db/migrate/20150408204739_remove_not_null_constraint_on_conference_title.rb b/db/migrate/20150408204739_remove_not_null_constraint_on_conference_title.rb index 4eb6142..00e348b 100644 --- a/db/migrate/20150408204739_remove_not_null_constraint_on_conference_title.rb +++ b/db/migrate/20150408204739_remove_not_null_constraint_on_conference_title.rb @@ -1,4 +1,4 @@ -class RemoveNotNullConstraintOnConferenceTitle < ActiveRecord::Migration +class RemoveNotNullConstraintOnConferenceTitle < ActiveRecord::Migration[4.2] def change change_column :conferences, :title, :string, null: true end diff --git a/db/migrate/20150408204855_remove_not_null_constraint_on_conference_description.rb b/db/migrate/20150408204855_remove_not_null_constraint_on_conference_description.rb index ff14c77..d08dab4 100644 --- a/db/migrate/20150408204855_remove_not_null_constraint_on_conference_description.rb +++ b/db/migrate/20150408204855_remove_not_null_constraint_on_conference_description.rb @@ -1,4 +1,4 @@ -class RemoveNotNullConstraintOnConferenceDescription < ActiveRecord::Migration +class RemoveNotNullConstraintOnConferenceDescription < ActiveRecord::Migration[4.2] def change change_column :conferences, :description, :text, null: true end diff --git a/db/migrate/20150408205015_remove_not_null_constraint_on_track_name.rb b/db/migrate/20150408205015_remove_not_null_constraint_on_track_name.rb index e47d63f..ecf7788 100644 --- a/db/migrate/20150408205015_remove_not_null_constraint_on_track_name.rb +++ b/db/migrate/20150408205015_remove_not_null_constraint_on_track_name.rb @@ -1,4 +1,4 @@ -class RemoveNotNullConstraintOnTrackName < ActiveRecord::Migration +class RemoveNotNullConstraintOnTrackName < ActiveRecord::Migration[4.2] def change change_column :tracks, :name, :text, null: true end diff --git a/db/migrate/20150416232523_create_event_types.rb b/db/migrate/20150416232523_create_event_types.rb index a2196da..e01f43a 100644 --- a/db/migrate/20150416232523_create_event_types.rb +++ b/db/migrate/20150416232523_create_event_types.rb @@ -1,4 +1,4 @@ -class CreateEventTypes < ActiveRecord::Migration +class CreateEventTypes < ActiveRecord::Migration[4.2] def up create_table :event_types do |t| t.references :conference, index: true, foreign_key: true diff --git a/db/migrate/20150416234411_create_event_types_for_all_existing_events.rb b/db/migrate/20150416234411_create_event_types_for_all_existing_events.rb index b12b5ea..467e24a 100644 --- a/db/migrate/20150416234411_create_event_types_for_all_existing_events.rb +++ b/db/migrate/20150416234411_create_event_types_for_all_existing_events.rb @@ -1,7 +1,7 @@ class EventType < ActiveRecord::Base end -class CreateEventTypesForAllExistingEvents < ActiveRecord::Migration +class CreateEventTypesForAllExistingEvents < ActiveRecord::Migration[4.2] def up event_types = execute 'SELECT events.type AS type_name, tracks.conference_id, MIN(events.created_at) AS created_at FROM events INNER JOIN tracks ON tracks.id = events.track_id diff --git a/db/migrate/20150417002119_add_event_type_to_events.rb b/db/migrate/20150417002119_add_event_type_to_events.rb index 6ac0783..cf8ab30 100644 --- a/db/migrate/20150417002119_add_event_type_to_events.rb +++ b/db/migrate/20150417002119_add_event_type_to_events.rb @@ -1,4 +1,4 @@ -class AddEventTypeToEvents < ActiveRecord::Migration +class AddEventTypeToEvents < ActiveRecord::Migration[4.2] def change add_reference :events, :event_type, index: true, foreign_key: true end diff --git a/db/migrate/20150417002233_populate_event_type_of_existing_events.rb b/db/migrate/20150417002233_populate_event_type_of_existing_events.rb index 84e8e1d..de1f6e2 100644 --- a/db/migrate/20150417002233_populate_event_type_of_existing_events.rb +++ b/db/migrate/20150417002233_populate_event_type_of_existing_events.rb @@ -1,4 +1,4 @@ -class PopulateEventTypeOfExistingEvents < ActiveRecord::Migration +class PopulateEventTypeOfExistingEvents < ActiveRecord::Migration[4.2] def up event_ids = execute('SELECT id FROM events WHERE type IS NOT NULL;').map { |row| row['id'] }; diff --git a/db/migrate/20150417004249_remove_unneeded_columns_from_events.rb b/db/migrate/20150417004249_remove_unneeded_columns_from_events.rb index 49f9415..6f70cef 100644 --- a/db/migrate/20150417004249_remove_unneeded_columns_from_events.rb +++ b/db/migrate/20150417004249_remove_unneeded_columns_from_events.rb @@ -1,4 +1,4 @@ -class RemoveUnneededColumnsFromEvents < ActiveRecord::Migration +class RemoveUnneededColumnsFromEvents < ActiveRecord::Migration[4.2] def change remove_index :events, name: :index_events_on_track_id, column: :track_id remove_index :events, name: :index_events_on_type, column: :type diff --git a/db/migrate/20150420154042_create_call_for_participations.rb b/db/migrate/20150420154042_create_call_for_participations.rb index 0f3bf5e..5e2645a 100644 --- a/db/migrate/20150420154042_create_call_for_participations.rb +++ b/db/migrate/20150420154042_create_call_for_participations.rb @@ -1,4 +1,4 @@ -class CreateCallForParticipations < ActiveRecord::Migration +class CreateCallForParticipations < ActiveRecord::Migration[4.2] def change create_table :call_for_participations do |t| t.references :conference, index: true, foreign_key: true diff --git a/db/migrate/20150524160616_create_call_for_participation_records.rb b/db/migrate/20150524160616_create_call_for_participation_records.rb index 2788672..1fa4d78 100644 --- a/db/migrate/20150524160616_create_call_for_participation_records.rb +++ b/db/migrate/20150524160616_create_call_for_participation_records.rb @@ -1,7 +1,7 @@ class Conference < ActiveRecord::Base; end class CallForParticipation < ActiveRecord::Base; end -class CreateCallForParticipationRecords < ActiveRecord::Migration +class CreateCallForParticipationRecords < ActiveRecord::Migration[4.2] def change Conference.all.each do |c| CallForParticipation.create!(conference_id: c.id) diff --git a/db/migrate/20150530181525_rename_speaker_profiles_to_personal_profiles.rb b/db/migrate/20150530181525_rename_speaker_profiles_to_personal_profiles.rb index c4ee3f1..1ca86ca 100644 --- a/db/migrate/20150530181525_rename_speaker_profiles_to_personal_profiles.rb +++ b/db/migrate/20150530181525_rename_speaker_profiles_to_personal_profiles.rb @@ -1,4 +1,4 @@ -class RenameSpeakerProfilesToPersonalProfiles < ActiveRecord::Migration +class RenameSpeakerProfilesToPersonalProfiles < ActiveRecord::Migration[4.2] def change rename_table :speaker_profiles, :personal_profiles end diff --git a/db/migrate/20150530182514_add_conference_id_to_personal_profiles.rb b/db/migrate/20150530182514_add_conference_id_to_personal_profiles.rb index 50ca38a..56fb152 100644 --- a/db/migrate/20150530182514_add_conference_id_to_personal_profiles.rb +++ b/db/migrate/20150530182514_add_conference_id_to_personal_profiles.rb @@ -1,4 +1,4 @@ -class AddConferenceIdToPersonalProfiles < ActiveRecord::Migration +class AddConferenceIdToPersonalProfiles < ActiveRecord::Migration[4.2] def change add_column :personal_profiles, :conference_id, :integer add_index :personal_profiles, :conference_id diff --git a/db/migrate/20150530182857_populate_conference_id_in_personal_profiles.rb b/db/migrate/20150530182857_populate_conference_id_in_personal_profiles.rb index fdbd02d..5d714c2 100644 --- a/db/migrate/20150530182857_populate_conference_id_in_personal_profiles.rb +++ b/db/migrate/20150530182857_populate_conference_id_in_personal_profiles.rb @@ -4,7 +4,7 @@ end class PersonalProfile < ActiveRecord::Base end -class PopulateConferenceIdInPersonalProfiles < ActiveRecord::Migration +class PopulateConferenceIdInPersonalProfiles < ActiveRecord::Migration[4.2] def change conference = Conference.first diff --git a/db/migrate/20150712103000_add_slug_to_conferences.rb b/db/migrate/20150712103000_add_slug_to_conferences.rb index 6d060e7..da9ae24 100644 --- a/db/migrate/20150712103000_add_slug_to_conferences.rb +++ b/db/migrate/20150712103000_add_slug_to_conferences.rb @@ -1,4 +1,4 @@ -class AddSlugToConferences < ActiveRecord::Migration +class AddSlugToConferences < ActiveRecord::Migration[4.2] def change add_column :conferences, :slug, :string add_index :conferences, :slug diff --git a/db/migrate/20150719114546_remove_slug_from_conferences.rb b/db/migrate/20150719114546_remove_slug_from_conferences.rb index 83de9ba..0a1248a 100644 --- a/db/migrate/20150719114546_remove_slug_from_conferences.rb +++ b/db/migrate/20150719114546_remove_slug_from_conferences.rb @@ -1,4 +1,4 @@ -class RemoveSlugFromConferences < ActiveRecord::Migration +class RemoveSlugFromConferences < ActiveRecord::Migration[4.2] def change remove_column :conferences, :slug end diff --git a/db/migrate/20150719170422_add_description_to_event_types.rb b/db/migrate/20150719170422_add_description_to_event_types.rb index 866d842..f447a6d 100644 --- a/db/migrate/20150719170422_add_description_to_event_types.rb +++ b/db/migrate/20150719170422_add_description_to_event_types.rb @@ -1,4 +1,4 @@ -class AddDescriptionToEventTypes < ActiveRecord::Migration +class AddDescriptionToEventTypes < ActiveRecord::Migration[4.2] def change add_column :event_types, :description, :text end diff --git a/db/migrate/20150729135346_create_participations.rb b/db/migrate/20150729135346_create_participations.rb index 848f62f..3690fa6 100644 --- a/db/migrate/20150729135346_create_participations.rb +++ b/db/migrate/20150729135346_create_participations.rb @@ -1,4 +1,4 @@ -class CreateParticipations < ActiveRecord::Migration +class CreateParticipations < ActiveRecord::Migration[4.2] def change create_table :participations do |t| t.references :participant, index: true diff --git a/db/migrate/20150729135818_create_participation_records.rb b/db/migrate/20150729135818_create_participation_records.rb index ca4f337..262c35c 100644 --- a/db/migrate/20150729135818_create_participation_records.rb +++ b/db/migrate/20150729135818_create_participation_records.rb @@ -1,7 +1,7 @@ class Participation < ActiveRecord::Base; end class PersonalProfile < ActiveRecord::Base; end -class CreateParticipationRecords < ActiveRecord::Migration +class CreateParticipationRecords < ActiveRecord::Migration[4.2] def up event_to_speaker_profiles = execute 'SELECT * FROM events_speaker_profiles' diff --git a/db/migrate/20150729145831_drop_join_table_events_sepaker_profiles.rb b/db/migrate/20150729145831_drop_join_table_events_sepaker_profiles.rb index f04b11f..c1ccf5a 100644 --- a/db/migrate/20150729145831_drop_join_table_events_sepaker_profiles.rb +++ b/db/migrate/20150729145831_drop_join_table_events_sepaker_profiles.rb @@ -1,4 +1,4 @@ -class DropJoinTableEventsSepakerProfiles < ActiveRecord::Migration +class DropJoinTableEventsSepakerProfiles < ActiveRecord::Migration[4.2] def up drop_table :events_speaker_profiles end diff --git a/db/migrate/20150805161830_add_language_to_users.rb b/db/migrate/20150805161830_add_language_to_users.rb index e9ae846..6b76838 100644 --- a/db/migrate/20150805161830_add_language_to_users.rb +++ b/db/migrate/20150805161830_add_language_to_users.rb @@ -1,4 +1,4 @@ -class AddLanguageToUsers < ActiveRecord::Migration +class AddLanguageToUsers < ActiveRecord::Migration[4.2] def change add_column :users, :language, :string end diff --git a/db/migrate/20150814202053_add_conference_id_to_events.rb b/db/migrate/20150814202053_add_conference_id_to_events.rb index fa2d097..f086bdd 100644 --- a/db/migrate/20150814202053_add_conference_id_to_events.rb +++ b/db/migrate/20150814202053_add_conference_id_to_events.rb @@ -10,7 +10,7 @@ end class Track < ActiveRecord::Base end -class AddConferenceIdToEvents < ActiveRecord::Migration +class AddConferenceIdToEvents < ActiveRecord::Migration[4.2] def up add_reference :events, :conference, index: true, foreign_key: true diff --git a/db/migrate/20150814203341_add_track_id_to_events.rb b/db/migrate/20150814203341_add_track_id_to_events.rb index b47b334..0b48076 100644 --- a/db/migrate/20150814203341_add_track_id_to_events.rb +++ b/db/migrate/20150814203341_add_track_id_to_events.rb @@ -6,7 +6,7 @@ class Proposition < ActiveRecord::Base belongs_to :proposable, polymorphic: true end -class AddTrackIdToEvents < ActiveRecord::Migration +class AddTrackIdToEvents < ActiveRecord::Migration[4.2] def up add_reference :events, :track, index: true, foreign_key: true diff --git a/db/migrate/20150814204500_remove_proposition_accepting_fields_from_propositions.rb b/db/migrate/20150814204500_remove_proposition_accepting_fields_from_propositions.rb index 6686b45..b78065e 100644 --- a/db/migrate/20150814204500_remove_proposition_accepting_fields_from_propositions.rb +++ b/db/migrate/20150814204500_remove_proposition_accepting_fields_from_propositions.rb @@ -1,4 +1,4 @@ -class RemovePropositionAcceptingFieldsFromPropositions < ActiveRecord::Migration +class RemovePropositionAcceptingFieldsFromPropositions < ActiveRecord::Migration[4.2] def change remove_reference :propositions, :proposition_accepting, index: true, polymorphic: true end diff --git a/db/migrate/20150815030159_add_host_name_to_conferences.rb b/db/migrate/20150815030159_add_host_name_to_conferences.rb index 5aa75e5..bcd8fd9 100644 --- a/db/migrate/20150815030159_add_host_name_to_conferences.rb +++ b/db/migrate/20150815030159_add_host_name_to_conferences.rb @@ -1,4 +1,4 @@ -class AddHostNameToConferences < ActiveRecord::Migration +class AddHostNameToConferences < ActiveRecord::Migration[4.2] def change add_column :conferences, :host_name, :string add_index :conferences, :host_name diff --git a/db/migrate/20150819205900_add_time_limits_to_event_types.rb b/db/migrate/20150819205900_add_time_limits_to_event_types.rb index adff861..7bd5982 100644 --- a/db/migrate/20150819205900_add_time_limits_to_event_types.rb +++ b/db/migrate/20150819205900_add_time_limits_to_event_types.rb @@ -1,4 +1,4 @@ -class AddTimeLimitsToEventTypes < ActiveRecord::Migration +class AddTimeLimitsToEventTypes < ActiveRecord::Migration[4.2] def change add_column :event_types, :minimum_length, :integer add_column :event_types, :maximum_length, :integer diff --git a/db/migrate/20150819213202_drop_default_value_for_length_in_events.rb b/db/migrate/20150819213202_drop_default_value_for_length_in_events.rb index df70401..08b0cb0 100644 --- a/db/migrate/20150819213202_drop_default_value_for_length_in_events.rb +++ b/db/migrate/20150819213202_drop_default_value_for_length_in_events.rb @@ -1,4 +1,4 @@ -class DropDefaultValueForLengthInEvents < ActiveRecord::Migration +class DropDefaultValueForLengthInEvents < ActiveRecord::Migration[4.2] def change change_column_default(:events, :length, nil) end diff --git a/db/migrate/20150901074818_create_volunteer_teams.rb b/db/migrate/20150901074818_create_volunteer_teams.rb index a0fbc09..3d299e1 100644 --- a/db/migrate/20150901074818_create_volunteer_teams.rb +++ b/db/migrate/20150901074818_create_volunteer_teams.rb @@ -1,4 +1,4 @@ -class CreateVolunteerTeams < ActiveRecord::Migration +class CreateVolunteerTeams < ActiveRecord::Migration[4.2] def up create_table :volunteer_teams do |t| t.references :conference, index: true, foreign_key: true diff --git a/db/migrate/20150901091814_create_volunteerships.rb b/db/migrate/20150901091814_create_volunteerships.rb index 250ad70..76d8fd0 100644 --- a/db/migrate/20150901091814_create_volunteerships.rb +++ b/db/migrate/20150901091814_create_volunteerships.rb @@ -1,4 +1,4 @@ -class CreateVolunteerships < ActiveRecord::Migration +class CreateVolunteerships < ActiveRecord::Migration[4.2] def change create_table :volunteerships do |t| t.references :volunteer_team, index: true, foreign_key: true diff --git a/db/migrate/20151018105303_add_css_class_to_tracks.rb b/db/migrate/20151018105303_add_css_class_to_tracks.rb index f72c8cb..0693742 100644 --- a/db/migrate/20151018105303_add_css_class_to_tracks.rb +++ b/db/migrate/20151018105303_add_css_class_to_tracks.rb @@ -1,4 +1,4 @@ -class AddCssClassToTracks < ActiveRecord::Migration +class AddCssClassToTracks < ActiveRecord::Migration[4.2] def change add_column :tracks, :css_class, :string end diff --git a/db/migrate/20151018105806_add_css_style_string_to_tracks.rb b/db/migrate/20151018105806_add_css_style_string_to_tracks.rb index b41214e..c6d69c8 100644 --- a/db/migrate/20151018105806_add_css_style_string_to_tracks.rb +++ b/db/migrate/20151018105806_add_css_style_string_to_tracks.rb @@ -1,4 +1,4 @@ -class AddCssStyleStringToTracks < ActiveRecord::Migration +class AddCssStyleStringToTracks < ActiveRecord::Migration[4.2] def change add_column :tracks, :css_style, :text end diff --git a/db/migrate/20151018105933_add_foreground_color_to_tracks.rb b/db/migrate/20151018105933_add_foreground_color_to_tracks.rb index 241cfbe..eef7db3 100644 --- a/db/migrate/20151018105933_add_foreground_color_to_tracks.rb +++ b/db/migrate/20151018105933_add_foreground_color_to_tracks.rb @@ -1,4 +1,4 @@ -class AddForegroundColorToTracks < ActiveRecord::Migration +class AddForegroundColorToTracks < ActiveRecord::Migration[4.2] def change add_column :tracks, :foreground_color, :string end diff --git a/db/migrate/20151018211611_add_confirmed_at_to_propositions.rb b/db/migrate/20151018211611_add_confirmed_at_to_propositions.rb index 0b8ae5e..4df6c19 100644 --- a/db/migrate/20151018211611_add_confirmed_at_to_propositions.rb +++ b/db/migrate/20151018211611_add_confirmed_at_to_propositions.rb @@ -1,4 +1,4 @@ -class AddConfirmedAtToPropositions < ActiveRecord::Migration +class AddConfirmedAtToPropositions < ActiveRecord::Migration[4.2] def change add_column :propositions, :confirmed_at, :timestamp end diff --git a/db/migrate/20151018211712_populate_confirmed_at_of_propositions_for_events.rb b/db/migrate/20151018211712_populate_confirmed_at_of_propositions_for_events.rb index fd54dd5..2ea0a05 100644 --- a/db/migrate/20151018211712_populate_confirmed_at_of_propositions_for_events.rb +++ b/db/migrate/20151018211712_populate_confirmed_at_of_propositions_for_events.rb @@ -2,7 +2,7 @@ class Event < ActiveRecord::Base include Proposable end -class PopulateConfirmedAtOfPropositionsForEvents < ActiveRecord::Migration +class PopulateConfirmedAtOfPropositionsForEvents < ActiveRecord::Migration[4.2] def up Event.all do |event| event.proposition.update(confirmed_at: event.confirmed_at) diff --git a/db/migrate/20151018212026_remove_confirmed_at_from_events.rb b/db/migrate/20151018212026_remove_confirmed_at_from_events.rb index 1173060..13bfdee 100644 --- a/db/migrate/20151018212026_remove_confirmed_at_from_events.rb +++ b/db/migrate/20151018212026_remove_confirmed_at_from_events.rb @@ -1,4 +1,4 @@ -class RemoveConfirmedAtFromEvents < ActiveRecord::Migration +class RemoveConfirmedAtFromEvents < ActiveRecord::Migration[4.2] def change remove_column :events, :confirmed_at, :timestamp end diff --git a/db/migrate/20151020071227_add_translations_to_halls.rb b/db/migrate/20151020071227_add_translations_to_halls.rb index cb7e3b9..4523ad5 100644 --- a/db/migrate/20151020071227_add_translations_to_halls.rb +++ b/db/migrate/20151020071227_add_translations_to_halls.rb @@ -1,4 +1,4 @@ -class AddTranslationsToHalls < ActiveRecord::Migration +class AddTranslationsToHalls < ActiveRecord::Migration[4.2] def self.up Hall.create_translation_table!({ :name => :string diff --git a/db/migrate/20151021162134_create_volunteers.rb b/db/migrate/20151021162134_create_volunteers.rb index 643e5b7..35f9d0f 100644 --- a/db/migrate/20151021162134_create_volunteers.rb +++ b/db/migrate/20151021162134_create_volunteers.rb @@ -1,4 +1,4 @@ -class CreateVolunteers < ActiveRecord::Migration +class CreateVolunteers < ActiveRecord::Migration[4.2] def change create_table :volunteers do |t| t.string :name diff --git a/db/migrate/20151021183039_create_join_table_volunteer_volunteer_team.rb b/db/migrate/20151021183039_create_join_table_volunteer_volunteer_team.rb index ac8448e..dee31ed 100644 --- a/db/migrate/20151021183039_create_join_table_volunteer_volunteer_team.rb +++ b/db/migrate/20151021183039_create_join_table_volunteer_volunteer_team.rb @@ -1,4 +1,4 @@ -class CreateJoinTableVolunteerVolunteerTeam < ActiveRecord::Migration +class CreateJoinTableVolunteerVolunteerTeam < ActiveRecord::Migration[4.2] def change create_join_table :volunteers, :volunteer_teams do |t| t.index [:volunteer_id, :volunteer_team_id], name: 'volunteer_id_volunteer_team_id' diff --git a/db/migrate/20151021185100_add_conference_id_to_volunteers.rb b/db/migrate/20151021185100_add_conference_id_to_volunteers.rb index c07da37..3de0dd2 100644 --- a/db/migrate/20151021185100_add_conference_id_to_volunteers.rb +++ b/db/migrate/20151021185100_add_conference_id_to_volunteers.rb @@ -1,4 +1,4 @@ -class AddConferenceIdToVolunteers < ActiveRecord::Migration +class AddConferenceIdToVolunteers < ActiveRecord::Migration[4.2] def change add_reference :volunteers, :conference, index: true, foreign_key: true end diff --git a/db/migrate/20151021190854_add_language_to_volunteers.rb b/db/migrate/20151021190854_add_language_to_volunteers.rb index 2e2036a..d884dbd 100644 --- a/db/migrate/20151021190854_add_language_to_volunteers.rb +++ b/db/migrate/20151021190854_add_language_to_volunteers.rb @@ -1,4 +1,4 @@ -class AddLanguageToVolunteers < ActiveRecord::Migration +class AddLanguageToVolunteers < ActiveRecord::Migration[4.2] def change add_column :volunteers, :language, :string end diff --git a/db/migrate/20160705153038_add_planned_cfp_end_date_to_conferences.rb b/db/migrate/20160705153038_add_planned_cfp_end_date_to_conferences.rb index cf9e0b9..df1f015 100644 --- a/db/migrate/20160705153038_add_planned_cfp_end_date_to_conferences.rb +++ b/db/migrate/20160705153038_add_planned_cfp_end_date_to_conferences.rb @@ -1,4 +1,4 @@ -class AddPlannedCfpEndDateToConferences < ActiveRecord::Migration +class AddPlannedCfpEndDateToConferences < ActiveRecord::Migration[4.2] def change add_column :conferences, :planned_cfp_end_date, :date end diff --git a/db/migrate/20161010163747_add_vote_data_to_conferences.rb b/db/migrate/20161010163747_add_vote_data_to_conferences.rb index 4903789..5ebf22f 100644 --- a/db/migrate/20161010163747_add_vote_data_to_conferences.rb +++ b/db/migrate/20161010163747_add_vote_data_to_conferences.rb @@ -1,4 +1,4 @@ -class AddVoteDataToConferences < ActiveRecord::Migration +class AddVoteDataToConferences < ActiveRecord::Migration[4.2] def change add_column :conferences, :vote_data_endpoint, :string add_column :conferences, :number_of_ballots_cast, :integer diff --git a/db/migrate/20161010170711_add_vote_data_to_events.rb b/db/migrate/20161010170711_add_vote_data_to_events.rb index 1c30cfd..66f139d 100644 --- a/db/migrate/20161010170711_add_vote_data_to_events.rb +++ b/db/migrate/20161010170711_add_vote_data_to_events.rb @@ -1,4 +1,4 @@ -class AddVoteDataToEvents < ActiveRecord::Migration +class AddVoteDataToEvents < ActiveRecord::Migration[4.2] def change add_column :events, :number_of_votes, :integer add_column :events, :rank, :integer diff --git a/db/migrate/20161011005219_set_minimal_and_maximal_times_for_all_event_types.rb b/db/migrate/20161011005219_set_minimal_and_maximal_times_for_all_event_types.rb index 5bf1185..aeb996a 100644 --- a/db/migrate/20161011005219_set_minimal_and_maximal_times_for_all_event_types.rb +++ b/db/migrate/20161011005219_set_minimal_and_maximal_times_for_all_event_types.rb @@ -1,7 +1,7 @@ class EventType < ActiveRecord::Base end -class SetMinimalAndMaximalTimesForAllEventTypes < ActiveRecord::Migration +class SetMinimalAndMaximalTimesForAllEventTypes < ActiveRecord::Migration[4.2] def up EventType.where(minimum_length: nil).update_all(minimum_length: 0) EventType.where(maximum_length: nil).update_all(maximum_length: 240) diff --git a/db/migrate/20161011005420_add_descriptions_for_all_events.rb b/db/migrate/20161011005420_add_descriptions_for_all_events.rb index a8c018f..50d1723 100644 --- a/db/migrate/20161011005420_add_descriptions_for_all_events.rb +++ b/db/migrate/20161011005420_add_descriptions_for_all_events.rb @@ -1,7 +1,7 @@ class Event < ActiveRecord::Base end -class AddDescriptionsForAllEvents < ActiveRecord::Migration +class AddDescriptionsForAllEvents < ActiveRecord::Migration[4.2] def up Event.where(description: [nil, '']).update_all(description: 'n/a') end diff --git a/db/migrate/20161012185931_create_conflict_counts.rb b/db/migrate/20161012185931_create_conflict_counts.rb index 27754ed..afedb11 100644 --- a/db/migrate/20161012185931_create_conflict_counts.rb +++ b/db/migrate/20161012185931_create_conflict_counts.rb @@ -1,4 +1,4 @@ -class CreateConflictCounts < ActiveRecord::Migration +class CreateConflictCounts < ActiveRecord::Migration[4.2] def change create_table :conflict_counts do |t| t.references :left, index: true diff --git a/db/migrate/20161015023007_add_participants_view.rb b/db/migrate/20161015023007_add_participants_view.rb index b6ac360..4ab3db5 100644 --- a/db/migrate/20161015023007_add_participants_view.rb +++ b/db/migrate/20161015023007_add_participants_view.rb @@ -13,7 +13,7 @@ LEFT JOIN "personal_profiles" ON "personal_profiles"."conference_id" = "events" AND "personal_profiles"."user_id" = "users"."id"; EOS -class AddParticipantsView < ActiveRecord::Migration +class AddParticipantsView < ActiveRecord::Migration[4.2] def up execute PARTICIPANTS_SQL end diff --git a/db/migrate/20171022182011_create_feedbacks.rb b/db/migrate/20171022182011_create_feedbacks.rb index 606dbe7..e50952d 100644 --- a/db/migrate/20171022182011_create_feedbacks.rb +++ b/db/migrate/20171022182011_create_feedbacks.rb @@ -1,4 +1,4 @@ -class CreateFeedbacks < ActiveRecord::Migration +class CreateFeedbacks < ActiveRecord::Migration[4.2] def change create_table :feedbacks do |t| t.references :feedback_receiving, index: {name: :feedbacks_polymorphic_index}, polymorphic: true, null: false