Skip to content

Commit

Permalink
add dummy migration files
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Dec 24, 2017
1 parent 2a524f9 commit 9115035
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class RenameLoginBannerToOldLoginBanner < ActiveRecord::Migration
def change
rename_column :library_groups, :login_banner, :old_login_banner
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddForeignKeyToLibraryGroupIdOnLibrary < ActiveRecord::Migration
def change
add_foreign_key :libraries, :library_groups, null: false
end
end
4 changes: 2 additions & 2 deletions spec/dummy/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20160820004638) do
ActiveRecord::Schema.define(version: 20171126135238) do

create_table "accepts", force: :cascade do |t|
t.integer "basket_id"
Expand Down Expand Up @@ -485,7 +485,7 @@
t.text "display_name"
t.string "short_name", null: false
t.text "my_networks"
t.text "login_banner"
t.text "old_login_banner"
t.text "note"
t.integer "country_id"
t.integer "position"
Expand Down

0 comments on commit 9115035

Please sign in to comment.