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

      t.timestamps
    end

    add_index :pokeviewer_species, :name, unique: true
  end
end