From f6cdc2fd2f50224fb7dd31d3ccb374cf4ffe7b6d Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 23 Sep 2017 10:30:23 -0400 Subject: Moved revision moves into revision table This is a retroactive schema change, so there's no easy way to migrate into it without losing data, but this is so early into the development of this project that it really doesn't matter. --- ...0170917011258_create_pokeviewer_revision_moves.rb | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 db/migrate/20170917011258_create_pokeviewer_revision_moves.rb (limited to 'db/migrate/20170917011258_create_pokeviewer_revision_moves.rb') diff --git a/db/migrate/20170917011258_create_pokeviewer_revision_moves.rb b/db/migrate/20170917011258_create_pokeviewer_revision_moves.rb deleted file mode 100644 index e061207..0000000 --- a/db/migrate/20170917011258_create_pokeviewer_revision_moves.rb +++ /dev/null @@ -1,20 +0,0 @@ -class CreatePokeviewerRevisionMoves < ActiveRecord::Migration[5.1] - def change - create_table :pokeviewer_revision_moves do |t| - t.references :revision, null: false - t.references :move, null: false - t.integer :number, null: false - t.integer :pp_bonuses, null: false, default: 0 - - t.timestamps - end - - add_index :pokeviewer_revision_moves, [:revision_id, :number], unique: true - - add_foreign_key :pokeviewer_revision_moves, :pokeviewer_revisions, - column: :revision_id - - add_foreign_key :pokeviewer_revision_moves, :pokeviewer_moves, - column: :move_id - end -end -- cgit 1.4.1