diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 11:49:49 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 11:49:49 -0500 |
commit | 56f5841d4b9c12296cdfcaeff174b2627d59afc8 (patch) | |
tree | 4f7da4ebbe5ee15a1594b26466ed78e2cf10de35 /db/migrate/20170930213633_rename_revision_hold_item.rb | |
parent | c1b0443ba2aebdbd39291ddab0c189f3f4831320 (diff) | |
download | pokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.tar.gz pokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.tar.bz2 pokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.zip |
Migrate to full rails app
Diffstat (limited to 'db/migrate/20170930213633_rename_revision_hold_item.rb')
-rw-r--r-- | db/migrate/20170930213633_rename_revision_hold_item.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/db/migrate/20170930213633_rename_revision_hold_item.rb b/db/migrate/20170930213633_rename_revision_hold_item.rb index fe5ce9d..4060b9b 100644 --- a/db/migrate/20170930213633_rename_revision_hold_item.rb +++ b/db/migrate/20170930213633_rename_revision_hold_item.rb | |||
@@ -1,11 +1,11 @@ | |||
1 | class RenameRevisionHoldItem < ActiveRecord::Migration[5.1] | 1 | class RenameRevisionHoldItem < ActiveRecord::Migration[5.1] |
2 | def change | 2 | def change |
3 | remove_column :pokeviewer_revisions, :hold_item, :integer | 3 | remove_column :revisions, :hold_item, :integer |
4 | 4 | ||
5 | change_table :pokeviewer_revisions do |t| | 5 | change_table :revisions do |t| |
6 | t.references :item | 6 | t.references :item |
7 | end | 7 | end |
8 | 8 | ||
9 | add_foreign_key :pokeviewer_revisions, :pokeviewer_items, column: :item_id | 9 | add_foreign_key :revisions, :items, column: :item_id |
10 | end | 10 | end |
11 | end | 11 | end |