diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 11:49:49 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 11:49:49 -0500 |
commit | 56f5841d4b9c12296cdfcaeff174b2627d59afc8 (patch) | |
tree | 4f7da4ebbe5ee15a1594b26466ed78e2cf10de35 /db/migrate/20170916225306_create_pokeviewer_trainers.rb | |
parent | c1b0443ba2aebdbd39291ddab0c189f3f4831320 (diff) | |
download | pokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.tar.gz pokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.tar.bz2 pokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.zip |
Migrate to full rails app
Diffstat (limited to 'db/migrate/20170916225306_create_pokeviewer_trainers.rb')
-rw-r--r-- | db/migrate/20170916225306_create_pokeviewer_trainers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20170916225306_create_pokeviewer_trainers.rb b/db/migrate/20170916225306_create_pokeviewer_trainers.rb index 18e7952..f6fb9ac 100644 --- a/db/migrate/20170916225306_create_pokeviewer_trainers.rb +++ b/db/migrate/20170916225306_create_pokeviewer_trainers.rb | |||
@@ -1,6 +1,6 @@ | |||
1 | class CreatePokeviewerTrainers < ActiveRecord::Migration[5.1] | 1 | class CreatePokeviewerTrainers < ActiveRecord::Migration[5.1] |
2 | def change | 2 | def change |
3 | create_table :pokeviewer_trainers do |t| | 3 | create_table :trainers do |t| |
4 | t.string :game, null: false | 4 | t.string :game, null: false |
5 | t.string :name, null: false, limit: 191 | 5 | t.string :name, null: false, limit: 191 |
6 | t.integer :number, null: false | 6 | t.integer :number, null: false |
@@ -8,6 +8,6 @@ class CreatePokeviewerTrainers < ActiveRecord::Migration[5.1] | |||
8 | t.timestamps | 8 | t.timestamps |
9 | end | 9 | end |
10 | 10 | ||
11 | add_index :pokeviewer_trainers, [:name, :number], unique: true | 11 | add_index :trainers, [:name, :number], unique: true |
12 | end | 12 | end |
13 | end | 13 | end |