about summary refs log tree commit diff stats
path: root/db/migrate/20171015171557_add_pokeball_to_pokemon.pokeviewer.rb
blob: 01f6f973baa68f6772af2fe3794863b74b60e3da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# This migration comes from pokeviewer (originally 20171004203404)
class AddPokeballToPokemon < ActiveRecord::Migration[5.1]
  def change
    change_table :pokeviewer_pokemon do |t|
      t.string :pokeball, null: false, default: :poke
    end

    change_column_default :pokeviewer_pokemon, :pokeball, nil
  end
end