fix migration version and updated old rails methods into rails migrations
This commit is contained in:
parent
6e276b2787
commit
4eb451b3bd
204 changed files with 206 additions and 206 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class DeviseCreateUsers < ActiveRecord::Migration
|
class DeviseCreateUsers < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
create_table(:users) do |t|
|
create_table(:users) do |t|
|
||||||
## Database authenticatable
|
## Database authenticatable
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateConferencesTable < ActiveRecord::Migration
|
class CreateConferencesTable < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
create_table :conferences do |t|
|
create_table :conferences do |t|
|
||||||
t.string :guid, null: false
|
t.string :guid, null: false
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreatePeopleTable < ActiveRecord::Migration
|
class CreatePeopleTable < ActiveRecord::Migration[5.0]
|
||||||
def up
|
def up
|
||||||
create_table :people do |t|
|
create_table :people do |t|
|
||||||
t.string :guid, null: false
|
t.string :guid, null: false
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateRoomsTable < ActiveRecord::Migration
|
class CreateRoomsTable < ActiveRecord::Migration[5.0]
|
||||||
def up
|
def up
|
||||||
create_table :rooms do |t|
|
create_table :rooms do |t|
|
||||||
t.string :guid, null: false
|
t.string :guid, null: false
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateTracksTable < ActiveRecord::Migration
|
class CreateTracksTable < ActiveRecord::Migration[5.0]
|
||||||
def up
|
def up
|
||||||
create_table :tracks do |t|
|
create_table :tracks do |t|
|
||||||
t.string :guid, null: false
|
t.string :guid, null: false
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateEventsTable < ActiveRecord::Migration
|
class CreateEventsTable < ActiveRecord::Migration[5.0]
|
||||||
def up
|
def up
|
||||||
create_table :events do |t|
|
create_table :events do |t|
|
||||||
t.string :guid, null: false
|
t.string :guid, null: false
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateEventTypes < ActiveRecord::Migration
|
class CreateEventTypes < ActiveRecord::Migration[5.0]
|
||||||
def up
|
def up
|
||||||
create_table :event_types do |t|
|
create_table :event_types do |t|
|
||||||
t.references :conference
|
t.references :conference
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateEventPeopleTable < ActiveRecord::Migration
|
class CreateEventPeopleTable < ActiveRecord::Migration[5.0]
|
||||||
def self.up
|
def self.up
|
||||||
create_table :event_people do |t|
|
create_table :event_people do |t|
|
||||||
t.references :proposal
|
t.references :proposal
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateVenueTable < ActiveRecord::Migration
|
class CreateVenueTable < ActiveRecord::Migration[5.0]
|
||||||
def up
|
def up
|
||||||
create_table :venues do |t|
|
create_table :venues do |t|
|
||||||
t.string :guid
|
t.string :guid
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateRolesTable < ActiveRecord::Migration
|
class CreateRolesTable < ActiveRecord::Migration[5.0]
|
||||||
def self.up
|
def self.up
|
||||||
create_table :roles do |t|
|
create_table :roles do |t|
|
||||||
t.string :name
|
t.string :name
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class UserRolesTable < ActiveRecord::Migration
|
class UserRolesTable < ActiveRecord::Migration[5.0]
|
||||||
def self.up
|
def self.up
|
||||||
create_table :roles_users, id: false do |t|
|
create_table :roles_users, id: false do |t|
|
||||||
t.references :role, :user
|
t.references :role, :user
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateCfpTable < ActiveRecord::Migration
|
class CreateCfpTable < ActiveRecord::Migration[5.0]
|
||||||
def up
|
def up
|
||||||
create_table :call_for_papers do |t|
|
create_table :call_for_papers do |t|
|
||||||
t.date :start_date, null: false
|
t.date :start_date, null: false
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateRegistrationsTable < ActiveRecord::Migration
|
class CreateRegistrationsTable < ActiveRecord::Migration[5.0]
|
||||||
def up
|
def up
|
||||||
create_table :registrations do |t|
|
create_table :registrations do |t|
|
||||||
t.references :person
|
t.references :person
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateComments < ActiveRecord::Migration
|
class CreateComments < ActiveRecord::Migration[4.2]
|
||||||
def self.up
|
def self.up
|
||||||
create_table :comments do |t|
|
create_table :comments do |t|
|
||||||
t.string :title, limit: 50, default: ''
|
t.string :title, limit: 50, default: ''
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class ActsAsCommentableUpgradeMigration < ActiveRecord::Migration
|
class ActsAsCommentableUpgradeMigration < ActiveRecord::Migration[4.2]
|
||||||
def self.up
|
def self.up
|
||||||
rename_column :comments, :comment, :body
|
rename_column :comments, :comment, :body
|
||||||
add_column :comments, :subject, :string
|
add_column :comments, :subject, :string
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateEventAttachmentsTable < ActiveRecord::Migration
|
class CreateEventAttachmentsTable < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
create_table :event_attachments do |t|
|
create_table :event_attachments do |t|
|
||||||
t.references :event
|
t.references :event
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddRegistrationDatesToConferencesTable < ActiveRecord::Migration
|
class AddRegistrationDatesToConferencesTable < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :conferences, :registration_start_date, :date
|
add_column :conferences, :registration_start_date, :date
|
||||||
add_column :conferences, :registration_end_date, :date
|
add_column :conferences, :registration_end_date, :date
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class RemoveCfpAndRegBooleansFromConferences < ActiveRecord::Migration
|
class RemoveCfpAndRegBooleansFromConferences < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
remove_column :conferences, :cfp_open
|
remove_column :conferences, :cfp_open
|
||||||
remove_column :conferences, :registration_open
|
remove_column :conferences, :registration_open
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateVersions < ActiveRecord::Migration
|
class CreateVersions < ActiveRecord::Migration[4.2]
|
||||||
def self.up
|
def self.up
|
||||||
create_table :versions do |t|
|
create_table :versions do |t|
|
||||||
t.string :item_type, null: false
|
t.string :item_type, null: false
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateEmailTable < ActiveRecord::Migration
|
class CreateEmailTable < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
create_table :email_settings do |t|
|
create_table :email_settings do |t|
|
||||||
t.references :conference
|
t.references :conference
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddSubjectsToEmailSettings < ActiveRecord::Migration
|
class AddSubjectsToEmailSettings < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :email_settings, :registration_subject, :string
|
add_column :email_settings, :registration_subject, :string
|
||||||
add_column :email_settings, :accepted_subject, :string
|
add_column :email_settings, :accepted_subject, :string
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddLogoToConferencesTable < ActiveRecord::Migration
|
class AddLogoToConferencesTable < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :conferences, :logo_file_name, :string
|
add_column :conferences, :logo_file_name, :string
|
||||||
add_column :conferences, :logo_content_type, :string
|
add_column :conferences, :logo_content_type, :string
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class ChangeArrivalRegistrationsDateToDatetime < ActiveRecord::Migration
|
class ChangeArrivalRegistrationsDateToDatetime < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
change_column :registrations, :arrival, :datetime
|
change_column :registrations, :arrival, :datetime
|
||||||
change_column :registrations, :departure, :datetime
|
change_column :registrations, :departure, :datetime
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddMinimumAndMaximumAbstractLengthsToEventTypes < ActiveRecord::Migration
|
class AddMinimumAndMaximumAbstractLengthsToEventTypes < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :event_types, :minimum_abstract_length, :integer, default: 0
|
add_column :event_types, :minimum_abstract_length, :integer, default: 0
|
||||||
add_column :event_types, :maximum_abstract_length, :integer, default: 500
|
add_column :event_types, :maximum_abstract_length, :integer, default: 500
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddDietaryChoiceToConferences < ActiveRecord::Migration
|
class AddDietaryChoiceToConferences < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :conferences, :use_dietary_choices, :boolean, default: false
|
add_column :conferences, :use_dietary_choices, :boolean, default: false
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateDietaryChoicesTable < ActiveRecord::Migration
|
class CreateDietaryChoicesTable < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
create_table :dietary_choices do |t|
|
create_table :dietary_choices do |t|
|
||||||
t.references :conference
|
t.references :conference
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddDietaryChoiceToRegistration < ActiveRecord::Migration
|
class AddDietaryChoiceToRegistration < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :registrations, :dietary_choice_id, :integer
|
add_column :registrations, :dietary_choice_id, :integer
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddDietaryTextToRegistration < ActiveRecord::Migration
|
class AddDietaryTextToRegistration < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :registrations, :other_dietary_choice, :text
|
add_column :registrations, :other_dietary_choice, :text
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddHandicappedAccessToRegistrations < ActiveRecord::Migration
|
class AddHandicappedAccessToRegistrations < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :registrations, :handicapped_access_required, :boolean, default: false
|
add_column :registrations, :handicapped_access_required, :boolean, default: false
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateSupporterLevelTable < ActiveRecord::Migration
|
class CreateSupporterLevelTable < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
create_table :supporter_levels do |t|
|
create_table :supporter_levels do |t|
|
||||||
t.references :conference
|
t.references :conference
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateTableSupporterRegistrations < ActiveRecord::Migration
|
class CreateTableSupporterRegistrations < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
create_table :supporter_registrations do |t|
|
create_table :supporter_registrations do |t|
|
||||||
t.references :registration
|
t.references :registration
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddUseSupporterLevelsToConferences < ActiveRecord::Migration
|
class AddUseSupporterLevelsToConferences < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :conferences, :use_supporter_levels, :boolean, default: false
|
add_column :conferences, :use_supporter_levels, :boolean, default: false
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class RenameAttendingSocialEventsWithPartner < ActiveRecord::Migration
|
class RenameAttendingSocialEventsWithPartner < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
rename_column :registrations, :attending_social_events_with_partner, :attending_with_partner
|
rename_column :registrations, :attending_social_events_with_partner, :attending_with_partner
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddIrcNickToPeopleTable < ActiveRecord::Migration
|
class AddIrcNickToPeopleTable < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :people, :irc_nickname, :string
|
add_column :people, :irc_nickname, :string
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateSocialEventsTable < ActiveRecord::Migration
|
class CreateSocialEventsTable < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
create_table :social_events do |t|
|
create_table :social_events do |t|
|
||||||
t.references :conference
|
t.references :conference
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateRegistrationsSocialEventsTable < ActiveRecord::Migration
|
class CreateRegistrationsSocialEventsTable < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
create_table :registrations_social_events, id: false do |t|
|
create_table :registrations_social_events, id: false do |t|
|
||||||
t.references :registration, :social_event
|
t.references :registration, :social_event
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class SetRegistrationDefaultsToFalse < ActiveRecord::Migration
|
class SetRegistrationDefaultsToFalse < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
change_column :registrations, :using_affiliated_lodging, :boolean, default: false
|
change_column :registrations, :using_affiliated_lodging, :boolean, default: false
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddSpecialNeedsFieldToRegistrations < ActiveRecord::Migration
|
class AddSpecialNeedsFieldToRegistrations < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :registrations, :other_special_needs, :text
|
add_column :registrations, :other_special_needs, :text
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class ChangeAttachmentDefault < ActiveRecord::Migration
|
class ChangeAttachmentDefault < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
change_column_default(:event_attachments, :public, true)
|
change_column_default(:event_attachments, :public, true)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class ChangeVenueTypes < ActiveRecord::Migration
|
class ChangeVenueTypes < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
change_column :venues, :name, :text
|
change_column :venues, :name, :text
|
||||||
change_column :venues, :address, :text
|
change_column :venues, :address, :text
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddVideoIdToEvents < ActiveRecord::Migration
|
class AddVideoIdToEvents < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :events, :video_id, :string
|
add_column :events, :video_id, :string
|
||||||
add_column :events, :video_type, :string
|
add_column :events, :video_type, :string
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddRevisionToConference < ActiveRecord::Migration
|
class AddRevisionToConference < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :conferences, :revision, :integer
|
add_column :conferences, :revision, :integer
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateEventsRegistrationsTable < ActiveRecord::Migration
|
class CreateEventsRegistrationsTable < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
create_table :events_registrations, id: false do |t|
|
create_table :events_registrations, id: false do |t|
|
||||||
t.references :registration, :event
|
t.references :registration, :event
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddRequireRegistrationToEvents < ActiveRecord::Migration
|
class AddRequireRegistrationToEvents < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :events, :require_registration, :boolean
|
add_column :events, :require_registration, :boolean
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddAttendedToRegistrations < ActiveRecord::Migration
|
class AddAttendedToRegistrations < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :registrations, :attended, :boolean, default: 0
|
add_column :registrations, :attended, :boolean, default: 0
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddScheduleChangesToCallForPapers < ActiveRecord::Migration
|
class AddScheduleChangesToCallForPapers < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :call_for_papers, :schedule_changes, :boolean, default: 0
|
add_column :call_for_papers, :schedule_changes, :boolean, default: 0
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateVotes < ActiveRecord::Migration
|
class CreateVotes < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
create_table :votes do |t|
|
create_table :votes do |t|
|
||||||
t.references :person
|
t.references :person
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddRatingToCallForPapers < ActiveRecord::Migration
|
class AddRatingToCallForPapers < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :call_for_papers, :rating, :integer, null: 1
|
add_column :call_for_papers, :rating, :integer, null: 1
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddRatingDescToCallForPapers < ActiveRecord::Migration
|
class AddRatingDescToCallForPapers < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :call_for_papers, :rating_desc, :text
|
add_column :call_for_papers, :rating_desc, :text
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddVolunteerToRegistrations < ActiveRecord::Migration
|
class AddVolunteerToRegistrations < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :registrations, :volunteer, :boolean
|
add_column :registrations, :volunteer, :boolean
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddVolunteerExperienceToRegistrations < ActiveRecord::Migration
|
class AddVolunteerExperienceToRegistrations < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :people, :volunteer_experience, :text
|
add_column :people, :volunteer_experience, :text
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddTshirtToPeople < ActiveRecord::Migration
|
class AddTshirtToPeople < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :people, :tshirt, :string
|
add_column :people, :tshirt, :string
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddMobileToPeople < ActiveRecord::Migration
|
class AddMobileToPeople < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :people, :mobile, :string
|
add_column :people, :mobile, :string
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddLanguagesToPeople < ActiveRecord::Migration
|
class AddLanguagesToPeople < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :people, :languages, :string
|
add_column :people, :languages, :string
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddUseVpositionsToConferences < ActiveRecord::Migration
|
class AddUseVpositionsToConferences < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :conferences, :use_vpositions, :boolean
|
add_column :conferences, :use_vpositions, :boolean
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddUseVdaysToConferences < ActiveRecord::Migration
|
class AddUseVdaysToConferences < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :conferences, :use_vdays, :boolean
|
add_column :conferences, :use_vdays, :boolean
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateVpositions < ActiveRecord::Migration
|
class CreateVpositions < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
create_table :vpositions do |t|
|
create_table :vpositions do |t|
|
||||||
t.references :conference
|
t.references :conference
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateVdays < ActiveRecord::Migration
|
class CreateVdays < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
create_table :vdays do |t|
|
create_table :vdays do |t|
|
||||||
t.references :conference
|
t.references :conference
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddCreatedAtToSupporterRegistrations < ActiveRecord::Migration
|
class AddCreatedAtToSupporterRegistrations < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :supporter_registrations, :created_at, :datetime
|
add_column :supporter_registrations, :created_at, :datetime
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class ChangeDefaultRatingInCallForPapers < ActiveRecord::Migration
|
class ChangeDefaultRatingInCallForPapers < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
change_column :call_for_papers, :rating, :integer, default: 3
|
change_column :call_for_papers, :rating, :integer, default: 3
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateVchoices < ActiveRecord::Migration
|
class CreateVchoices < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
create_table :vchoices do |t|
|
create_table :vchoices do |t|
|
||||||
t.references :vday
|
t.references :vday
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class RegistrationsVchoices < ActiveRecord::Migration
|
class RegistrationsVchoices < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
create_table :registrations_vchoices, id: false do |t|
|
create_table :registrations_vchoices, id: false do |t|
|
||||||
t.references :registration, :vchoice
|
t.references :registration, :vchoice
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateQuestions < ActiveRecord::Migration
|
class CreateQuestions < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
create_table :questions do |t|
|
create_table :questions do |t|
|
||||||
t.string :title
|
t.string :title
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateQuestionTypes < ActiveRecord::Migration
|
class CreateQuestionTypes < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
create_table :question_types do |t|
|
create_table :question_types do |t|
|
||||||
t.string :title
|
t.string :title
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateAnswers < ActiveRecord::Migration
|
class CreateAnswers < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
create_table :answers do |t|
|
create_table :answers do |t|
|
||||||
t.string :title
|
t.string :title
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateQanswers < ActiveRecord::Migration
|
class CreateQanswers < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
create_table :qanswers do |t|
|
create_table :qanswers do |t|
|
||||||
t.references :question
|
t.references :question
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateConferencesQuestions < ActiveRecord::Migration
|
class CreateConferencesQuestions < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
create_table :conferences_questions, id: false do |t|
|
create_table :conferences_questions, id: false do |t|
|
||||||
t.references :conference
|
t.references :conference
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateQanswersRegistrations < ActiveRecord::Migration
|
class CreateQanswersRegistrations < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
create_table :qanswers_registrations, id: false do |t|
|
create_table :qanswers_registrations, id: false do |t|
|
||||||
t.references :registration, null: false
|
t.references :registration, null: false
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateDifficultyLevels < ActiveRecord::Migration
|
class CreateDifficultyLevels < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
create_table :difficulty_levels do |t|
|
create_table :difficulty_levels do |t|
|
||||||
t.references :conference
|
t.references :conference
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddUseDifficultyLevelsToConference < ActiveRecord::Migration
|
class AddUseDifficultyLevelsToConference < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :conferences, :use_difficulty_levels, :boolean, default: false
|
add_column :conferences, :use_difficulty_levels, :boolean, default: false
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddDifficultyLevelIdToEvents < ActiveRecord::Migration
|
class AddDifficultyLevelIdToEvents < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :events, :difficulty_level_id, :integer
|
add_column :events, :difficulty_level_id, :integer
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddUseVolunteersToConference < ActiveRecord::Migration
|
class AddUseVolunteersToConference < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :conferences, :use_volunteers, :boolean
|
add_column :conferences, :use_volunteers, :boolean
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class UseVdaysVpositionsDefaults < ActiveRecord::Migration
|
class UseVdaysVpositionsDefaults < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
change_column :conferences, :use_vpositions, :boolean, default: false
|
change_column :conferences, :use_vpositions, :boolean, default: false
|
||||||
change_column :conferences, :use_vdays, :boolean, default: false
|
change_column :conferences, :use_vdays, :boolean, default: false
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class RenameVideoToMediaOnEvents < ActiveRecord::Migration
|
class RenameVideoToMediaOnEvents < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
rename_column :events, :video_id, :media_id
|
rename_column :events, :video_id, :media_id
|
||||||
rename_column :events, :video_type, :media_type
|
rename_column :events, :video_type, :media_type
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddSchedulePublicToCallForPapers < ActiveRecord::Migration
|
class AddSchedulePublicToCallForPapers < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :call_for_papers, :schedule_public, :boolean
|
add_column :call_for_papers, :schedule_public, :boolean
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddVideoToConferences < ActiveRecord::Migration
|
class AddVideoToConferences < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :conferences, :media_id, :string
|
add_column :conferences, :media_id, :string
|
||||||
add_column :conferences, :media_type, :string
|
add_column :conferences, :media_type, :string
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class RemoveRatingDescFromCfp < ActiveRecord::Migration
|
class RemoveRatingDescFromCfp < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
remove_column :call_for_papers, :rating_desc
|
remove_column :call_for_papers, :rating_desc
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddColorToConference < ActiveRecord::Migration
|
class AddColorToConference < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :conferences, :color, :string, default: '#000000'
|
add_column :conferences, :color, :string, default: '#000000'
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddDescriptionToConference < ActiveRecord::Migration
|
class AddDescriptionToConference < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :conferences, :description, :text
|
add_column :conferences, :description, :text
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddRegistrationDescriptionToConference < ActiveRecord::Migration
|
class AddRegistrationDescriptionToConference < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :conferences, :registration_description, :text
|
add_column :conferences, :registration_description, :text
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddTicketDescriptionToConference < ActiveRecord::Migration
|
class AddTicketDescriptionToConference < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :conferences, :ticket_description, :text
|
add_column :conferences, :ticket_description, :text
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddDescriptionToSupporterLevel < ActiveRecord::Migration
|
class AddDescriptionToSupporterLevel < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :supporter_levels, :description, :text
|
add_column :supporter_levels, :description, :text
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddTicketPriceToSupporterLevel < ActiveRecord::Migration
|
class AddTicketPriceToSupporterLevel < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :supporter_levels, :ticket_price, :string
|
add_column :supporter_levels, :ticket_price, :string
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class RemoveColorDefaults < ActiveRecord::Migration
|
class RemoveColorDefaults < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
change_column_default(:tracks, :color, nil)
|
change_column_default(:tracks, :color, nil)
|
||||||
change_column_default(:conferences, :color, nil)
|
change_column_default(:conferences, :color, nil)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateOpenids < ActiveRecord::Migration
|
class CreateOpenids < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
create_table :openids do |t|
|
create_table :openids do |t|
|
||||||
t.string :provider
|
t.string :provider
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateLodgings < ActiveRecord::Migration
|
class CreateLodgings < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
create_table :lodgings do |t|
|
create_table :lodgings do |t|
|
||||||
t.string :name
|
t.string :name
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class RemoveHardDeadlineFromCallForPapers < ActiveRecord::Migration
|
class RemoveHardDeadlineFromCallForPapers < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
remove_column :call_for_papers, :hard_deadline
|
remove_column :call_for_papers, :hard_deadline
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateSponsorshipLevels < ActiveRecord::Migration
|
class CreateSponsorshipLevels < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
create_table :sponsorship_levels do |t|
|
create_table :sponsorship_levels do |t|
|
||||||
t.string :title
|
t.string :title
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateSponsors < ActiveRecord::Migration
|
class CreateSponsors < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
create_table :sponsors do |t|
|
create_table :sponsors do |t|
|
||||||
t.string :name
|
t.string :name
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class UpdateEventStates < ActiveRecord::Migration
|
class UpdateEventStates < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
execute "UPDATE events SET state='new' WHERE state = 'review';"
|
execute "UPDATE events SET state='new' WHERE state = 'review';"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddSponsorDescriptionToConference < ActiveRecord::Migration
|
class AddSponsorDescriptionToConference < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :conferences, :sponsor_description, :text
|
add_column :conferences, :sponsor_description, :text
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddSponsorEmailToConference < ActiveRecord::Migration
|
class AddSponsorEmailToConference < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :conferences, :sponsor_email, :string
|
add_column :conferences, :sponsor_email, :string
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddPersonAttributesToUser < ActiveRecord::Migration
|
class AddPersonAttributesToUser < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :users, :name, :string
|
add_column :users, :name, :string
|
||||||
add_column :users, :email_public, :boolean
|
add_column :users, :email_public, :boolean
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreatePhotos < ActiveRecord::Migration
|
class CreatePhotos < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
create_table :photos do |t|
|
create_table :photos do |t|
|
||||||
t.text :description
|
t.text :description
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class CreateEventUsers < ActiveRecord::Migration
|
class CreateEventUsers < ActiveRecord::Migration[4.2]
|
||||||
class TempPerson < ActiveRecord::Base
|
class TempPerson < ActiveRecord::Base
|
||||||
self.table_name = 'people'
|
self.table_name = 'people'
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class MigrateDataPersonToUser < ActiveRecord::Migration
|
class MigrateDataPersonToUser < ActiveRecord::Migration[4.2]
|
||||||
class TempPerson < ActiveRecord::Base
|
class TempPerson < ActiveRecord::Base
|
||||||
self.table_name = 'people'
|
self.table_name = 'people'
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class ChangePersonIdToUserIdInRegistrations < ActiveRecord::Migration
|
class ChangePersonIdToUserIdInRegistrations < ActiveRecord::Migration[4.2]
|
||||||
class TempPerson < ActiveRecord::Base
|
class TempPerson < ActiveRecord::Base
|
||||||
self.table_name = 'people'
|
self.table_name = 'people'
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class ChangePersonIdToUserIdInVotes < ActiveRecord::Migration
|
class ChangePersonIdToUserIdInVotes < ActiveRecord::Migration[4.2]
|
||||||
class TempPerson < ActiveRecord::Base
|
class TempPerson < ActiveRecord::Base
|
||||||
self.table_name = 'people'
|
self.table_name = 'people'
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddColorToEventType < ActiveRecord::Migration
|
class AddColorToEventType < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :event_types, :color, :string
|
add_column :event_types, :color, :string
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AddSocialUrlsToConference < ActiveRecord::Migration
|
class AddSocialUrlsToConference < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :conferences, :twitter_url, :string
|
add_column :conferences, :twitter_url, :string
|
||||||
add_column :conferences, :facebook_url, :string
|
add_column :conferences, :facebook_url, :string
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue