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