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

      t.timestamps
    end

    add_index :species, :name, unique: true
  end
end