diff options
Diffstat (limited to 'db/migrate/20171015171542_create_pokeviewer_moves.pokeviewer.rb')
-rw-r--r-- | db/migrate/20171015171542_create_pokeviewer_moves.pokeviewer.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20171015171542_create_pokeviewer_moves.pokeviewer.rb b/db/migrate/20171015171542_create_pokeviewer_moves.pokeviewer.rb new file mode 100644 index 0000000..47fa68f --- /dev/null +++ b/db/migrate/20171015171542_create_pokeviewer_moves.pokeviewer.rb | |||
@@ -0,0 +1,13 @@ | |||
1 | # This migration comes from pokeviewer (originally 20170917011102) | ||
2 | class CreatePokeviewerMoves < ActiveRecord::Migration[5.1] | ||
3 | def change | ||
4 | create_table :pokeviewer_moves do |t| | ||
5 | t.string :name, null: false, limit: 191 | ||
6 | t.integer :pp, null: false | ||
7 | |||
8 | t.timestamps | ||
9 | end | ||
10 | |||
11 | add_index :pokeviewer_moves, :name, unique: true | ||
12 | end | ||
13 | end | ||