about summary refs log tree commit diff stats
path: root/db/migrate/20171011015648_add_type_and_ability_to_species.rb
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-10-15 14:33:56 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-10-15 14:33:56 -0400
commita273f1cd3e7e3ccbc420a1dd3b507dc372cf286a (patch)
treed4888acf3612a471fb943144c8c7c892a5e4c0be /db/migrate/20171011015648_add_type_and_ability_to_species.rb
parent6def4c0a8ac99a489647b93c2a752b9803aefce1 (diff)
downloadpokeviewer-a273f1cd3e7e3ccbc420a1dd3b507dc372cf286a.tar.gz
pokeviewer-a273f1cd3e7e3ccbc420a1dd3b507dc372cf286a.tar.bz2
pokeviewer-a273f1cd3e7e3ccbc420a1dd3b507dc372cf286a.zip
Fixed two more migrations, similar to previous
Diffstat (limited to 'db/migrate/20171011015648_add_type_and_ability_to_species.rb')
-rw-r--r--db/migrate/20171011015648_add_type_and_ability_to_species.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20171011015648_add_type_and_ability_to_species.rb b/db/migrate/20171011015648_add_type_and_ability_to_species.rb index d7d274e..3c24c1b 100644 --- a/db/migrate/20171011015648_add_type_and_ability_to_species.rb +++ b/db/migrate/20171011015648_add_type_and_ability_to_species.rb
@@ -3,8 +3,8 @@ class AddTypeAndAbilityToSpecies < ActiveRecord::Migration[5.1]
3 change_table :pokeviewer_species do |t| 3 change_table :pokeviewer_species do |t|
4 t.string :type_1, null: false, default: "" 4 t.string :type_1, null: false, default: ""
5 t.string :type_2 5 t.string :type_2
6 t.integer :ability_1_id, null: false, default: 0 6 t.references :ability_1, null: false, default: 0
7 t.integer :ability_2_id 7 t.references :ability_2
8 end 8 end
9 9
10 change_column_default :pokeviewer_species, :type_1, nil 10 change_column_default :pokeviewer_species, :type_1, nil