Skip to content

Commit

Permalink
fix migration version and updated old rails methods into rails migrat…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
carlospohlodcodeminer42 committed Nov 9, 2022
1 parent ca3c5b5 commit 9a253a6
Show file tree
Hide file tree
Showing 204 changed files with 206 additions and 206 deletions.
2 changes: 1 addition & 1 deletion db/migrate/20121223110942_devise_create_users.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20121223115038_create_conferences_table.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20121223115106_create_people_table.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20121223115117_create_rooms_table.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20121223115125_create_tracks_table.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20121223115135_create_events_table.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20121223120413_create_event_types.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20121223122307_create_event_people_table.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20121223122842_create_venue_table.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20121223135240_create_roles_table.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20121223135447_user_roles_table.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20121224144728_create_cfp_table.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130103134212_create_registrations_table.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130104142209_create_comments.rb
Original file line number Diff line number Diff line change
@@ -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: ''
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130107114930_create_versions.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130113105652_create_email_table.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130117130949_add_logo_to_conferences_table.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130202091051_create_dietary_choices_table.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130202130737_create_supporter_level_table.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130211170728_add_irc_nick_to_people_table.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130216070725_create_social_events_table.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130515125823_change_attachment_default.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130515131420_change_venue_types.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130626095459_add_video_id_to_events.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130705055128_add_revision_to_conference.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130712072609_add_attended_to_registrations.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130815085420_create_votes.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130815201317_add_rating_to_call_for_papers.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading

0 comments on commit 9a253a6

Please sign in to comment.