about summary refs log tree commit diff stats
path: root/db/migrate/20171015171540_create_pokeviewer_species.pokeviewer.rb
blob: d3e299f86089141a19d6bcf71f48ff62c2ef6e5a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# This migration comes from pokeviewer (originally 20170916232015)
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