about summary refs log tree commit diff stats
path: root/db/migrate/20171011015325_create_pokeviewer_abilities.rb
blob: a7f6b5fc5201be6c35505411b72ec36777ea4e70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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