blob: fe5ce9d4f4730fb57c2908c21f8a75a7fcc8d8fb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
class RenameRevisionHoldItem < ActiveRecord::Migration[5.1]
def change
remove_column :pokeviewer_revisions, :hold_item, :integer
change_table :pokeviewer_revisions do |t|
t.references :item
end
add_foreign_key :pokeviewer_revisions, :pokeviewer_items, column: :item_id
end
end
|