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