about summary refs log tree commit diff stats
path: root/db/migrate/20171015171557_add_pokeball_to_pokemon.pokeviewer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20171015171557_add_pokeball_to_pokemon.pokeviewer.rb')
-rw-r--r--db/migrate/20171015171557_add_pokeball_to_pokemon.pokeviewer.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20171015171557_add_pokeball_to_pokemon.pokeviewer.rb b/db/migrate/20171015171557_add_pokeball_to_pokemon.pokeviewer.rb new file mode 100644 index 0000000..01f6f97 --- /dev/null +++ b/db/migrate/20171015171557_add_pokeball_to_pokemon.pokeviewer.rb
@@ -0,0 +1,10 @@
1# This migration comes from pokeviewer (originally 20171004203404)
2class AddPokeballToPokemon < ActiveRecord::Migration[5.1]
3 def change
4 change_table :pokeviewer_pokemon do |t|
5 t.string :pokeball, null: false, default: :poke
6 end
7
8 change_column_default :pokeviewer_pokemon, :pokeball, nil
9 end
10end