about summary refs log tree commit diff stats
path: root/db/migrate/20171015171142_add_pokeviewer_token_to_user.rb
blob: 2dc51437d5fb5f7cf6502c247956bf3670417eb1 (plain) (blame)
1
2
3
4
5
6
7
8
9
class AddPokeviewerTokenToUser < ActiveRecord::Migration[5.1]
  def change
    change_table :users do |t|
      t.string :pokeviewer_token, limit: 191
    end

    add_index :users, :pokeviewer_token, unique: true
  end
end