diff options
Diffstat (limited to 'db/migrate/20170916232015_create_pokeviewer_species.rb')
-rw-r--r-- | db/migrate/20170916232015_create_pokeviewer_species.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20170916232015_create_pokeviewer_species.rb b/db/migrate/20170916232015_create_pokeviewer_species.rb index e6d5c09..0d630ea 100644 --- a/db/migrate/20170916232015_create_pokeviewer_species.rb +++ b/db/migrate/20170916232015_create_pokeviewer_species.rb | |||
@@ -1,11 +1,11 @@ | |||
1 | class CreatePokeviewerSpecies < ActiveRecord::Migration[5.1] | 1 | class CreatePokeviewerSpecies < ActiveRecord::Migration[5.1] |
2 | def change | 2 | def change |
3 | create_table :pokeviewer_species do |t| | 3 | create_table :species do |t| |
4 | t.string :name, null: false, limit: 191 | 4 | t.string :name, null: false, limit: 191 |
5 | 5 | ||
6 | t.timestamps | 6 | t.timestamps |
7 | end | 7 | end |
8 | 8 | ||
9 | add_index :pokeviewer_species, :name, unique: true | 9 | add_index :species, :name, unique: true |
10 | end | 10 | end |
11 | end | 11 | end |