about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2018-01-29 21:13:35 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2018-01-29 21:13:35 -0500
commit5ade37d852bd1e96f9451ab98619359a5a048cee (patch)
tree251c6bf7c24b7be69b2e908590a733a808165e4c /test
parent30cd66e1521bc760df45908adb2f7d3ba6683900 (diff)
downloadpokeviewer-5ade37d852bd1e96f9451ab98619359a5a048cee.tar.gz
pokeviewer-5ade37d852bd1e96f9451ab98619359a5a048cee.tar.bz2
pokeviewer-5ade37d852bd1e96f9451ab98619359a5a048cee.zip
Added Pokédex viewing page
Currently a work in progress. The queries used to display the Pokémon for each species are very inefficient. The text at the top of the page is also very specific to the author.
Diffstat (limited to 'test')
-rw-r--r--test/dummy/db/schema.rb13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/dummy/db/schema.rb b/test/dummy/db/schema.rb index 5f8c1c0..996df86 100644 --- a/test/dummy/db/schema.rb +++ b/test/dummy/db/schema.rb
@@ -10,7 +10,7 @@
10# 10#
11# It's strongly recommended that you check this file into your version control system. 11# It's strongly recommended that you check this file into your version control system.
12 12
13ActiveRecord::Schema.define(version: 20180114170238) do 13ActiveRecord::Schema.define(version: 20180129213822) do
14 14
15 create_table "pokeviewer_abilities", force: :cascade do |t| 15 create_table "pokeviewer_abilities", force: :cascade do |t|
16 t.string "name", limit: 191, null: false 16 t.string "name", limit: 191, null: false
@@ -56,6 +56,17 @@ ActiveRecord::Schema.define(version: 20180114170238) do
56 t.index ["name"], name: "index_pokeviewer_moves_on_name", unique: true 56 t.index ["name"], name: "index_pokeviewer_moves_on_name", unique: true
57 end 57 end
58 58
59 create_table "pokeviewer_pokedex_entries", force: :cascade do |t|
60 t.integer "trainer_id"
61 t.integer "species_id"
62 t.boolean "caught", default: false
63 t.datetime "created_at", null: false
64 t.datetime "updated_at", null: false
65 t.index ["species_id"], name: "index_pokeviewer_pokedex_entries_on_species_id"
66 t.index ["trainer_id", "species_id"], name: "index_pokeviewer_pokedex_entries_on_trainer_id_and_species_id", unique: true
67 t.index ["trainer_id"], name: "index_pokeviewer_pokedex_entries_on_trainer_id"
68 end
69
59 create_table "pokeviewer_pokemon", force: :cascade do |t| 70 create_table "pokeviewer_pokemon", force: :cascade do |t|
60 t.string "uuid", limit: 191, null: false 71 t.string "uuid", limit: 191, null: false
61 t.integer "trainer_id" 72 t.integer "trainer_id"