fix migration version and updated old rails methods into rails migrations

This commit is contained in:
Carlos Daniel Pohlod 2022-11-09 17:05:21 -03:00 committed by Henne Vogelsang
parent 6e276b2787
commit 4eb451b3bd
204 changed files with 206 additions and 206 deletions

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class DeviseCreateUsers < ActiveRecord::Migration
class DeviseCreateUsers < ActiveRecord::Migration[4.2]
def up
create_table(:users) do |t|
## Database authenticatable

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateConferencesTable < ActiveRecord::Migration
class CreateConferencesTable < ActiveRecord::Migration[4.2]
def up
create_table :conferences do |t|
t.string :guid, null: false

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreatePeopleTable < ActiveRecord::Migration
class CreatePeopleTable < ActiveRecord::Migration[5.0]
def up
create_table :people do |t|
t.string :guid, null: false

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateRoomsTable < ActiveRecord::Migration
class CreateRoomsTable < ActiveRecord::Migration[5.0]
def up
create_table :rooms do |t|
t.string :guid, null: false

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateTracksTable < ActiveRecord::Migration
class CreateTracksTable < ActiveRecord::Migration[5.0]
def up
create_table :tracks do |t|
t.string :guid, null: false

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateEventsTable < ActiveRecord::Migration
class CreateEventsTable < ActiveRecord::Migration[5.0]
def up
create_table :events do |t|
t.string :guid, null: false

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateEventTypes < ActiveRecord::Migration
class CreateEventTypes < ActiveRecord::Migration[5.0]
def up
create_table :event_types do |t|
t.references :conference

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateEventPeopleTable < ActiveRecord::Migration
class CreateEventPeopleTable < ActiveRecord::Migration[5.0]
def self.up
create_table :event_people do |t|
t.references :proposal

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateVenueTable < ActiveRecord::Migration
class CreateVenueTable < ActiveRecord::Migration[5.0]
def up
create_table :venues do |t|
t.string :guid

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateRolesTable < ActiveRecord::Migration
class CreateRolesTable < ActiveRecord::Migration[5.0]
def self.up
create_table :roles do |t|
t.string :name

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class UserRolesTable < ActiveRecord::Migration
class UserRolesTable < ActiveRecord::Migration[5.0]
def self.up
create_table :roles_users, id: false do |t|
t.references :role, :user

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateCfpTable < ActiveRecord::Migration
class CreateCfpTable < ActiveRecord::Migration[5.0]
def up
create_table :call_for_papers do |t|
t.date :start_date, null: false

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateRegistrationsTable < ActiveRecord::Migration
class CreateRegistrationsTable < ActiveRecord::Migration[5.0]
def up
create_table :registrations do |t|
t.references :person

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateComments < ActiveRecord::Migration
class CreateComments < ActiveRecord::Migration[4.2]
def self.up
create_table :comments do |t|
t.string :title, limit: 50, default: ''

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class ActsAsCommentableUpgradeMigration < ActiveRecord::Migration
class ActsAsCommentableUpgradeMigration < ActiveRecord::Migration[4.2]
def self.up
rename_column :comments, :comment, :body
add_column :comments, :subject, :string

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateEventAttachmentsTable < ActiveRecord::Migration
class CreateEventAttachmentsTable < ActiveRecord::Migration[4.2]
def up
create_table :event_attachments do |t|
t.references :event

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddRegistrationDatesToConferencesTable < ActiveRecord::Migration
class AddRegistrationDatesToConferencesTable < ActiveRecord::Migration[4.2]
def change
add_column :conferences, :registration_start_date, :date
add_column :conferences, :registration_end_date, :date

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class RemoveCfpAndRegBooleansFromConferences < ActiveRecord::Migration
class RemoveCfpAndRegBooleansFromConferences < ActiveRecord::Migration[4.2]
def up
remove_column :conferences, :cfp_open
remove_column :conferences, :registration_open

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateVersions < ActiveRecord::Migration
class CreateVersions < ActiveRecord::Migration[4.2]
def self.up
create_table :versions do |t|
t.string :item_type, null: false

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateEmailTable < ActiveRecord::Migration
class CreateEmailTable < ActiveRecord::Migration[4.2]
def up
create_table :email_settings do |t|
t.references :conference

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddSubjectsToEmailSettings < ActiveRecord::Migration
class AddSubjectsToEmailSettings < ActiveRecord::Migration[4.2]
def change
add_column :email_settings, :registration_subject, :string
add_column :email_settings, :accepted_subject, :string

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddLogoToConferencesTable < ActiveRecord::Migration
class AddLogoToConferencesTable < ActiveRecord::Migration[4.2]
def change
add_column :conferences, :logo_file_name, :string
add_column :conferences, :logo_content_type, :string

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class ChangeArrivalRegistrationsDateToDatetime < ActiveRecord::Migration
class ChangeArrivalRegistrationsDateToDatetime < ActiveRecord::Migration[4.2]
def up
change_column :registrations, :arrival, :datetime
change_column :registrations, :departure, :datetime

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddMinimumAndMaximumAbstractLengthsToEventTypes < ActiveRecord::Migration
class AddMinimumAndMaximumAbstractLengthsToEventTypes < ActiveRecord::Migration[4.2]
def change
add_column :event_types, :minimum_abstract_length, :integer, default: 0
add_column :event_types, :maximum_abstract_length, :integer, default: 500

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddDietaryChoiceToConferences < ActiveRecord::Migration
class AddDietaryChoiceToConferences < ActiveRecord::Migration[4.2]
def change
add_column :conferences, :use_dietary_choices, :boolean, default: false
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateDietaryChoicesTable < ActiveRecord::Migration
class CreateDietaryChoicesTable < ActiveRecord::Migration[4.2]
def up
create_table :dietary_choices do |t|
t.references :conference

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddDietaryChoiceToRegistration < ActiveRecord::Migration
class AddDietaryChoiceToRegistration < ActiveRecord::Migration[4.2]
def change
add_column :registrations, :dietary_choice_id, :integer
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddDietaryTextToRegistration < ActiveRecord::Migration
class AddDietaryTextToRegistration < ActiveRecord::Migration[4.2]
def change
add_column :registrations, :other_dietary_choice, :text
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddHandicappedAccessToRegistrations < ActiveRecord::Migration
class AddHandicappedAccessToRegistrations < ActiveRecord::Migration[4.2]
def change
add_column :registrations, :handicapped_access_required, :boolean, default: false
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateSupporterLevelTable < ActiveRecord::Migration
class CreateSupporterLevelTable < ActiveRecord::Migration[4.2]
def up
create_table :supporter_levels do |t|
t.references :conference

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateTableSupporterRegistrations < ActiveRecord::Migration
class CreateTableSupporterRegistrations < ActiveRecord::Migration[4.2]
def up
create_table :supporter_registrations do |t|
t.references :registration

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddUseSupporterLevelsToConferences < ActiveRecord::Migration
class AddUseSupporterLevelsToConferences < ActiveRecord::Migration[4.2]
def change
add_column :conferences, :use_supporter_levels, :boolean, default: false
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class RenameAttendingSocialEventsWithPartner < ActiveRecord::Migration
class RenameAttendingSocialEventsWithPartner < ActiveRecord::Migration[4.2]
def up
rename_column :registrations, :attending_social_events_with_partner, :attending_with_partner
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddIrcNickToPeopleTable < ActiveRecord::Migration
class AddIrcNickToPeopleTable < ActiveRecord::Migration[4.2]
def change
add_column :people, :irc_nickname, :string
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateSocialEventsTable < ActiveRecord::Migration
class CreateSocialEventsTable < ActiveRecord::Migration[4.2]
def up
create_table :social_events do |t|
t.references :conference

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateRegistrationsSocialEventsTable < ActiveRecord::Migration
class CreateRegistrationsSocialEventsTable < ActiveRecord::Migration[4.2]
def up
create_table :registrations_social_events, id: false do |t|
t.references :registration, :social_event

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class SetRegistrationDefaultsToFalse < ActiveRecord::Migration
class SetRegistrationDefaultsToFalse < ActiveRecord::Migration[4.2]
def up
change_column :registrations, :using_affiliated_lodging, :boolean, default: false
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddSpecialNeedsFieldToRegistrations < ActiveRecord::Migration
class AddSpecialNeedsFieldToRegistrations < ActiveRecord::Migration[4.2]
def change
add_column :registrations, :other_special_needs, :text
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class ChangeAttachmentDefault < ActiveRecord::Migration
class ChangeAttachmentDefault < ActiveRecord::Migration[4.2]
def up
change_column_default(:event_attachments, :public, true)
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class ChangeVenueTypes < ActiveRecord::Migration
class ChangeVenueTypes < ActiveRecord::Migration[4.2]
def up
change_column :venues, :name, :text
change_column :venues, :address, :text

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddVideoIdToEvents < ActiveRecord::Migration
class AddVideoIdToEvents < ActiveRecord::Migration[4.2]
def change
add_column :events, :video_id, :string
add_column :events, :video_type, :string

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddRevisionToConference < ActiveRecord::Migration
class AddRevisionToConference < ActiveRecord::Migration[4.2]
def change
add_column :conferences, :revision, :integer
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateEventsRegistrationsTable < ActiveRecord::Migration
class CreateEventsRegistrationsTable < ActiveRecord::Migration[4.2]
def up
create_table :events_registrations, id: false do |t|
t.references :registration, :event

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddRequireRegistrationToEvents < ActiveRecord::Migration
class AddRequireRegistrationToEvents < ActiveRecord::Migration[4.2]
def change
add_column :events, :require_registration, :boolean
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddAttendedToRegistrations < ActiveRecord::Migration
class AddAttendedToRegistrations < ActiveRecord::Migration[4.2]
def change
add_column :registrations, :attended, :boolean, default: 0
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddScheduleChangesToCallForPapers < ActiveRecord::Migration
class AddScheduleChangesToCallForPapers < ActiveRecord::Migration[4.2]
def change
add_column :call_for_papers, :schedule_changes, :boolean, default: 0
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateVotes < ActiveRecord::Migration
class CreateVotes < ActiveRecord::Migration[4.2]
def up
create_table :votes do |t|
t.references :person

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddRatingToCallForPapers < ActiveRecord::Migration
class AddRatingToCallForPapers < ActiveRecord::Migration[4.2]
def change
add_column :call_for_papers, :rating, :integer, null: 1
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddRatingDescToCallForPapers < ActiveRecord::Migration
class AddRatingDescToCallForPapers < ActiveRecord::Migration[4.2]
def change
add_column :call_for_papers, :rating_desc, :text
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddVolunteerToRegistrations < ActiveRecord::Migration
class AddVolunteerToRegistrations < ActiveRecord::Migration[4.2]
def change
add_column :registrations, :volunteer, :boolean
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddVolunteerExperienceToRegistrations < ActiveRecord::Migration
class AddVolunteerExperienceToRegistrations < ActiveRecord::Migration[4.2]
def change
add_column :people, :volunteer_experience, :text
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddTshirtToPeople < ActiveRecord::Migration
class AddTshirtToPeople < ActiveRecord::Migration[4.2]
def change
add_column :people, :tshirt, :string
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddMobileToPeople < ActiveRecord::Migration
class AddMobileToPeople < ActiveRecord::Migration[4.2]
def change
add_column :people, :mobile, :string
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddLanguagesToPeople < ActiveRecord::Migration
class AddLanguagesToPeople < ActiveRecord::Migration[4.2]
def change
add_column :people, :languages, :string
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddUseVpositionsToConferences < ActiveRecord::Migration
class AddUseVpositionsToConferences < ActiveRecord::Migration[4.2]
def change
add_column :conferences, :use_vpositions, :boolean
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddUseVdaysToConferences < ActiveRecord::Migration
class AddUseVdaysToConferences < ActiveRecord::Migration[4.2]
def change
add_column :conferences, :use_vdays, :boolean
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateVpositions < ActiveRecord::Migration
class CreateVpositions < ActiveRecord::Migration[4.2]
def up
create_table :vpositions do |t|
t.references :conference

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateVdays < ActiveRecord::Migration
class CreateVdays < ActiveRecord::Migration[4.2]
def up
create_table :vdays do |t|
t.references :conference

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddCreatedAtToSupporterRegistrations < ActiveRecord::Migration
class AddCreatedAtToSupporterRegistrations < ActiveRecord::Migration[4.2]
def change
add_column :supporter_registrations, :created_at, :datetime
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class ChangeDefaultRatingInCallForPapers < ActiveRecord::Migration
class ChangeDefaultRatingInCallForPapers < ActiveRecord::Migration[4.2]
def up
change_column :call_for_papers, :rating, :integer, default: 3
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateVchoices < ActiveRecord::Migration
class CreateVchoices < ActiveRecord::Migration[4.2]
def change
create_table :vchoices do |t|
t.references :vday

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class RegistrationsVchoices < ActiveRecord::Migration
class RegistrationsVchoices < ActiveRecord::Migration[4.2]
def up
create_table :registrations_vchoices, id: false do |t|
t.references :registration, :vchoice

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateQuestions < ActiveRecord::Migration
class CreateQuestions < ActiveRecord::Migration[4.2]
def change
create_table :questions do |t|
t.string :title

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateQuestionTypes < ActiveRecord::Migration
class CreateQuestionTypes < ActiveRecord::Migration[4.2]
def change
create_table :question_types do |t|
t.string :title

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateAnswers < ActiveRecord::Migration
class CreateAnswers < ActiveRecord::Migration[4.2]
def change
create_table :answers do |t|
t.string :title

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateQanswers < ActiveRecord::Migration
class CreateQanswers < ActiveRecord::Migration[4.2]
def change
create_table :qanswers do |t|
t.references :question

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateConferencesQuestions < ActiveRecord::Migration
class CreateConferencesQuestions < ActiveRecord::Migration[4.2]
def change
create_table :conferences_questions, id: false do |t|
t.references :conference

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateQanswersRegistrations < ActiveRecord::Migration
class CreateQanswersRegistrations < ActiveRecord::Migration[4.2]
def change
create_table :qanswers_registrations, id: false do |t|
t.references :registration, null: false

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateDifficultyLevels < ActiveRecord::Migration
class CreateDifficultyLevels < ActiveRecord::Migration[4.2]
def change
create_table :difficulty_levels do |t|
t.references :conference

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddUseDifficultyLevelsToConference < ActiveRecord::Migration
class AddUseDifficultyLevelsToConference < ActiveRecord::Migration[4.2]
def change
add_column :conferences, :use_difficulty_levels, :boolean, default: false
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddDifficultyLevelIdToEvents < ActiveRecord::Migration
class AddDifficultyLevelIdToEvents < ActiveRecord::Migration[4.2]
def change
add_column :events, :difficulty_level_id, :integer
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddUseVolunteersToConference < ActiveRecord::Migration
class AddUseVolunteersToConference < ActiveRecord::Migration[4.2]
def change
add_column :conferences, :use_volunteers, :boolean
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class UseVdaysVpositionsDefaults < ActiveRecord::Migration
class UseVdaysVpositionsDefaults < ActiveRecord::Migration[4.2]
def up
change_column :conferences, :use_vpositions, :boolean, default: false
change_column :conferences, :use_vdays, :boolean, default: false

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class RenameVideoToMediaOnEvents < ActiveRecord::Migration
class RenameVideoToMediaOnEvents < ActiveRecord::Migration[4.2]
def up
rename_column :events, :video_id, :media_id
rename_column :events, :video_type, :media_type

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddSchedulePublicToCallForPapers < ActiveRecord::Migration
class AddSchedulePublicToCallForPapers < ActiveRecord::Migration[4.2]
def change
add_column :call_for_papers, :schedule_public, :boolean
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddVideoToConferences < ActiveRecord::Migration
class AddVideoToConferences < ActiveRecord::Migration[4.2]
def change
add_column :conferences, :media_id, :string
add_column :conferences, :media_type, :string

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class RemoveRatingDescFromCfp < ActiveRecord::Migration
class RemoveRatingDescFromCfp < ActiveRecord::Migration[4.2]
def up
remove_column :call_for_papers, :rating_desc
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddColorToConference < ActiveRecord::Migration
class AddColorToConference < ActiveRecord::Migration[4.2]
def change
add_column :conferences, :color, :string, default: '#000000'
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddDescriptionToConference < ActiveRecord::Migration
class AddDescriptionToConference < ActiveRecord::Migration[4.2]
def change
add_column :conferences, :description, :text
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddRegistrationDescriptionToConference < ActiveRecord::Migration
class AddRegistrationDescriptionToConference < ActiveRecord::Migration[4.2]
def change
add_column :conferences, :registration_description, :text
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddTicketDescriptionToConference < ActiveRecord::Migration
class AddTicketDescriptionToConference < ActiveRecord::Migration[4.2]
def change
add_column :conferences, :ticket_description, :text
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddDescriptionToSupporterLevel < ActiveRecord::Migration
class AddDescriptionToSupporterLevel < ActiveRecord::Migration[4.2]
def change
add_column :supporter_levels, :description, :text
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddTicketPriceToSupporterLevel < ActiveRecord::Migration
class AddTicketPriceToSupporterLevel < ActiveRecord::Migration[4.2]
def change
add_column :supporter_levels, :ticket_price, :string
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class RemoveColorDefaults < ActiveRecord::Migration
class RemoveColorDefaults < ActiveRecord::Migration[4.2]
def change
change_column_default(:tracks, :color, nil)
change_column_default(:conferences, :color, nil)

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateOpenids < ActiveRecord::Migration
class CreateOpenids < ActiveRecord::Migration[4.2]
def change
create_table :openids do |t|
t.string :provider

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateLodgings < ActiveRecord::Migration
class CreateLodgings < ActiveRecord::Migration[4.2]
def change
create_table :lodgings do |t|
t.string :name

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class RemoveHardDeadlineFromCallForPapers < ActiveRecord::Migration
class RemoveHardDeadlineFromCallForPapers < ActiveRecord::Migration[4.2]
def up
remove_column :call_for_papers, :hard_deadline
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateSponsorshipLevels < ActiveRecord::Migration
class CreateSponsorshipLevels < ActiveRecord::Migration[4.2]
def change
create_table :sponsorship_levels do |t|
t.string :title

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateSponsors < ActiveRecord::Migration
class CreateSponsors < ActiveRecord::Migration[4.2]
def change
create_table :sponsors do |t|
t.string :name

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class UpdateEventStates < ActiveRecord::Migration
class UpdateEventStates < ActiveRecord::Migration[4.2]
def change
execute "UPDATE events SET state='new' WHERE state = 'review';"
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddSponsorDescriptionToConference < ActiveRecord::Migration
class AddSponsorDescriptionToConference < ActiveRecord::Migration[4.2]
def change
add_column :conferences, :sponsor_description, :text
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddSponsorEmailToConference < ActiveRecord::Migration
class AddSponsorEmailToConference < ActiveRecord::Migration[4.2]
def change
add_column :conferences, :sponsor_email, :string
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddPersonAttributesToUser < ActiveRecord::Migration
class AddPersonAttributesToUser < ActiveRecord::Migration[4.2]
def change
add_column :users, :name, :string
add_column :users, :email_public, :boolean

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreatePhotos < ActiveRecord::Migration
class CreatePhotos < ActiveRecord::Migration[4.2]
def change
create_table :photos do |t|
t.text :description

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateEventUsers < ActiveRecord::Migration
class CreateEventUsers < ActiveRecord::Migration[4.2]
class TempPerson < ActiveRecord::Base
self.table_name = 'people'
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class MigrateDataPersonToUser < ActiveRecord::Migration
class MigrateDataPersonToUser < ActiveRecord::Migration[4.2]
class TempPerson < ActiveRecord::Base
self.table_name = 'people'
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class ChangePersonIdToUserIdInRegistrations < ActiveRecord::Migration
class ChangePersonIdToUserIdInRegistrations < ActiveRecord::Migration[4.2]
class TempPerson < ActiveRecord::Base
self.table_name = 'people'
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class ChangePersonIdToUserIdInVotes < ActiveRecord::Migration
class ChangePersonIdToUserIdInVotes < ActiveRecord::Migration[4.2]
class TempPerson < ActiveRecord::Base
self.table_name = 'people'
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddColorToEventType < ActiveRecord::Migration
class AddColorToEventType < ActiveRecord::Migration[4.2]
def change
add_column :event_types, :color, :string
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddSocialUrlsToConference < ActiveRecord::Migration
class AddSocialUrlsToConference < ActiveRecord::Migration[4.2]
def change
add_column :conferences, :twitter_url, :string
add_column :conferences, :facebook_url, :string

Some files were not shown because too many files have changed in this diff Show more