about summary refs log tree commit diff stats
path: root/db/migrate/20171015171554_rename_revision_hold_item.pokeviewer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20171015171554_rename_revision_hold_item.pokeviewer.rb')
-rw-r--r--db/migrate/20171015171554_rename_revision_hold_item.pokeviewer.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20171015171554_rename_revision_hold_item.pokeviewer.rb b/db/migrate/20171015171554_rename_revision_hold_item.pokeviewer.rb new file mode 100644 index 0000000..f7246de --- /dev/null +++ b/db/migrate/20171015171554_rename_revision_hold_item.pokeviewer.rb
@@ -0,0 +1,10 @@
1# This migration comes from pokeviewer (originally 20170930213633)
2class RenameRevisionHoldItem < ActiveRecord::Migration[5.1]
3 def change
4 change_table :pokeviewer_revisions do |t|
5 t.rename :hold_item, :item_id
6 end
7
8 add_foreign_key :pokeviewer_revisions, :pokeviewer_items, column: :item_id
9 end
10end