Skip to content

Commit

Permalink
Added fake versions on the ActiveRecord::Migration[5.0]
Browse files Browse the repository at this point in the history
  • Loading branch information
siglun committed May 1, 2019
1 parent 02d4683 commit 613d1fe
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion db/migrate/20170301125837_create_searches.blacklight.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This migration comes from blacklight (originally 20140202020201)
# frozen_string_literal: true
class CreateSearches < ActiveRecord::Migration
class CreateSearches < ActiveRecord::Migration[4.2]
def self.up
create_table :searches do |t|
t.binary :query_params
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20170301125838_create_bookmarks.blacklight.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This migration comes from blacklight (originally 20140202020202)
# frozen_string_literal: true
class CreateBookmarks < ActiveRecord::Migration
class CreateBookmarks < ActiveRecord::Migration[4.2]
def self.up
create_table :bookmarks do |t|
t.integer :user_id, index: true, null: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This migration comes from blacklight (originally 20140320000000)
# frozen_string_literal: true
class AddPolymorphicTypeToBookmarks < ActiveRecord::Migration
class AddPolymorphicTypeToBookmarks < ActiveRecord::Migration[4.2]
def change
add_column(:bookmarks, :document_type, :string) unless Bookmark.connection.column_exists? :bookmarks, :document_type

Expand Down
4 changes: 2 additions & 2 deletions db/migrate/20170301125841_add_devise_guests_to_users.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddDeviseGuestsToUsers < ActiveRecord::Migration
class AddDeviseGuestsToUsers < ActiveRecord::Migration[5.0]
def self.up
change_table(:users) do |t|
## Database authenticatable
Expand All @@ -12,4 +12,4 @@ def self.down
# model already existed. Please edit below which fields you would like to remove in this migration.
raise ActiveRecord::IrreversibleMigration
end
end
end
2 changes: 1 addition & 1 deletion db/migrate/20170314101550_cas_users.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CasUsers < ActiveRecord::Migration
class CasUsers < ActiveRecord::Migration[5.0]
def self.up
add_column :users, :username, :string
add_index :users, :username, :unique => true
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20170314101640_cas_username.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CasUsername < ActiveRecord::Migration
class CasUsername < ActiveRecord::Migration[5.0]
def change
change_table :users do |t|
t.string :fullname
Expand Down

0 comments on commit 613d1fe

Please sign in to comment.