about summary refs log tree commit diff stats
path: root/db/migrate/20171015171540_create_pokeviewer_species.pokeviewer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20171015171540_create_pokeviewer_species.pokeviewer.rb')
-rw-r--r--db/migrate/20171015171540_create_pokeviewer_species.pokeviewer.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20171015171540_create_pokeviewer_species.pokeviewer.rb b/db/migrate/20171015171540_create_pokeviewer_species.pokeviewer.rb new file mode 100644 index 0000000..d3e299f --- /dev/null +++ b/db/migrate/20171015171540_create_pokeviewer_species.pokeviewer.rb
@@ -0,0 +1,12 @@
1# This migration comes from pokeviewer (originally 20170916232015)
2class CreatePokeviewerSpecies < ActiveRecord::Migration[5.1]
3 def change
4 create_table :pokeviewer_species do |t|
5 t.string :name, null: false, limit: 191
6
7 t.timestamps
8 end
9
10 add_index :pokeviewer_species, :name, unique: true
11 end
12end