From 0f32f526b73ecfd10012c0db9d7c4a4f15251a73 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 10 Oct 2017 22:46:46 -0400 Subject: Added type and ability data to species model --- db/migrate/20171011015325_create_pokeviewer_abilities.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 db/migrate/20171011015325_create_pokeviewer_abilities.rb (limited to 'db/migrate/20171011015325_create_pokeviewer_abilities.rb') diff --git a/db/migrate/20171011015325_create_pokeviewer_abilities.rb b/db/migrate/20171011015325_create_pokeviewer_abilities.rb new file mode 100644 index 0000000..a7f6b5f --- /dev/null +++ b/db/migrate/20171011015325_create_pokeviewer_abilities.rb @@ -0,0 +1,12 @@ +class CreatePokeviewerAbilities < ActiveRecord::Migration[5.1] + def change + create_table :pokeviewer_abilities do |t| + t.string :name, null: false, limit: 191 + t.string :description, null: false + + t.timestamps + end + + add_index :pokeviewer_abilities, :name, unique: true + end +end -- cgit 1.4.1