diff options
Diffstat (limited to 'db/migrate/20170930190647_add_description_and_type_to_moves.rb')
-rw-r--r-- | db/migrate/20170930190647_add_description_and_type_to_moves.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20170930190647_add_description_and_type_to_moves.rb b/db/migrate/20170930190647_add_description_and_type_to_moves.rb new file mode 100644 index 0000000..d2fe032 --- /dev/null +++ b/db/migrate/20170930190647_add_description_and_type_to_moves.rb | |||
@@ -0,0 +1,14 @@ | |||
1 | class AddDescriptionAndTypeToMoves < ActiveRecord::Migration[5.1] | ||
2 | def change | ||
3 | change_table :pokeviewer_moves do |t| | ||
4 | t.string :move_type, null: false, default: "" | ||
5 | t.string :rs_description, null: false, default: "" | ||
6 | t.string :frlg_description, null: false, default: "" | ||
7 | t.string :emerald_description | ||
8 | end | ||
9 | |||
10 | change_column_default :pokeviewer_moves, :move_type, nil | ||
11 | change_column_default :pokeviewer_moves, :rs_description, nil | ||
12 | change_column_default :pokeviewer_moves, :frlg_description, nil | ||
13 | end | ||
14 | end | ||