about summary refs log tree commit diff stats
path: root/db/migrate/20170917011102_create_pokeviewer_moves.rb
blob: 86bf45f51a5625e14f093a48fa8938dc1c0586fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
class CreatePokeviewerMoves < ActiveRecord::Migration[5.1]
  def change
    create_table :pokeviewer_moves do |t|
      t.string :name, null: false, limit: 191
      t.integer :pp, null: false

      t.timestamps
    end

    add_index :pokeviewer_moves, :name, unique: true
  end
end