diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-09-23 10:30:23 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-09-23 10:30:23 -0400 |
commit | f6cdc2fd2f50224fb7dd31d3ccb374cf4ffe7b6d (patch) | |
tree | 460dae3bae5a4ac961e6db0d9ca5c2b99bbdca0e /test/dummy/db | |
parent | 1d621019d7bf74b65898e009aef31766c7e7572b (diff) | |
download | pokeviewer-f6cdc2fd2f50224fb7dd31d3ccb374cf4ffe7b6d.tar.gz pokeviewer-f6cdc2fd2f50224fb7dd31d3ccb374cf4ffe7b6d.tar.bz2 pokeviewer-f6cdc2fd2f50224fb7dd31d3ccb374cf4ffe7b6d.zip |
Moved revision moves into revision table
This is a retroactive schema change, so there's no easy way to migrate into it without losing data, but this is so early into the development of this project that it really doesn't matter.
Diffstat (limited to 'test/dummy/db')
-rw-r--r-- | test/dummy/db/schema.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/dummy/db/schema.rb b/test/dummy/db/schema.rb index 4b5ad80..ef8b1ae 100644 --- a/test/dummy/db/schema.rb +++ b/test/dummy/db/schema.rb | |||
@@ -43,18 +43,6 @@ ActiveRecord::Schema.define(version: 20170917011258) do | |||
43 | t.index ["uuid"], name: "index_pokeviewer_pokemon_on_uuid", unique: true | 43 | t.index ["uuid"], name: "index_pokeviewer_pokemon_on_uuid", unique: true |
44 | end | 44 | end |
45 | 45 | ||
46 | create_table "pokeviewer_revision_moves", force: :cascade do |t| | ||
47 | t.integer "revision_id", null: false | ||
48 | t.integer "move_id", null: false | ||
49 | t.integer "number", null: false | ||
50 | t.integer "pp_bonuses", default: 0, null: false | ||
51 | t.datetime "created_at", null: false | ||
52 | t.datetime "updated_at", null: false | ||
53 | t.index ["move_id"], name: "index_pokeviewer_revision_moves_on_move_id" | ||
54 | t.index ["revision_id", "number"], name: "index_pokeviewer_revision_moves_on_revision_id_and_number", unique: true | ||
55 | t.index ["revision_id"], name: "index_pokeviewer_revision_moves_on_revision_id" | ||
56 | end | ||
57 | |||
58 | create_table "pokeviewer_revisions", force: :cascade do |t| | 46 | create_table "pokeviewer_revisions", force: :cascade do |t| |
59 | t.integer "pokemon_id", null: false | 47 | t.integer "pokemon_id", null: false |
60 | t.integer "sequential_id", null: false | 48 | t.integer "sequential_id", null: false |
@@ -74,8 +62,20 @@ ActiveRecord::Schema.define(version: 20170917011258) do | |||
74 | t.integer "toughness", null: false | 62 | t.integer "toughness", null: false |
75 | t.integer "sheen", null: false | 63 | t.integer "sheen", null: false |
76 | t.integer "hold_item" | 64 | t.integer "hold_item" |
65 | t.integer "move_1_id", null: false | ||
66 | t.integer "move_2_id" | ||
67 | t.integer "move_3_id" | ||
68 | t.integer "move_4_id" | ||
69 | t.integer "move_1_pp_bonuses", default: 0, null: false | ||
70 | t.integer "move_2_pp_bonuses", default: 0, null: false | ||
71 | t.integer "move_3_pp_bonuses", default: 0, null: false | ||
72 | t.integer "move_4_pp_bonuses", default: 0, null: false | ||
77 | t.datetime "created_at", null: false | 73 | t.datetime "created_at", null: false |
78 | t.datetime "updated_at", null: false | 74 | t.datetime "updated_at", null: false |
75 | t.index ["move_1_id"], name: "index_pokeviewer_revisions_on_move_1_id" | ||
76 | t.index ["move_2_id"], name: "index_pokeviewer_revisions_on_move_2_id" | ||
77 | t.index ["move_3_id"], name: "index_pokeviewer_revisions_on_move_3_id" | ||
78 | t.index ["move_4_id"], name: "index_pokeviewer_revisions_on_move_4_id" | ||
79 | t.index ["pokemon_id", "sequential_id"], name: "index_pokeviewer_revisions_on_pokemon_id_and_sequential_id", unique: true | 79 | t.index ["pokemon_id", "sequential_id"], name: "index_pokeviewer_revisions_on_pokemon_id_and_sequential_id", unique: true |
80 | t.index ["pokemon_id"], name: "index_pokeviewer_revisions_on_pokemon_id" | 80 | t.index ["pokemon_id"], name: "index_pokeviewer_revisions_on_pokemon_id" |
81 | end | 81 | end |