about summary refs log tree commit diff stats
path: root/db/migrate/20171011015325_create_pokeviewer_abilities.rb
blob: ae9645d6d7b8b77617e4191dd8b8f2548303f4fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
class CreatePokeviewerAbilities < ActiveRecord::Migration[5.1]
  def change
    create_table :abilities do |t|
      t.string :name, null: false, limit: 191
      t.string :description, null: false

      t.timestamps
    end

    add_index :abilities, :name, unique: true
  end
end