From 5ade37d852bd1e96f9451ab98619359a5a048cee Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 29 Jan 2018 21:13:35 -0500 Subject: Added Pokédex viewing page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- test/dummy/db/schema.rb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'test') 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 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20180114170238) do +ActiveRecord::Schema.define(version: 20180129213822) do create_table "pokeviewer_abilities", force: :cascade do |t| t.string "name", limit: 191, null: false @@ -56,6 +56,17 @@ ActiveRecord::Schema.define(version: 20180114170238) do t.index ["name"], name: "index_pokeviewer_moves_on_name", unique: true end + create_table "pokeviewer_pokedex_entries", force: :cascade do |t| + t.integer "trainer_id" + t.integer "species_id" + t.boolean "caught", default: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["species_id"], name: "index_pokeviewer_pokedex_entries_on_species_id" + t.index ["trainer_id", "species_id"], name: "index_pokeviewer_pokedex_entries_on_trainer_id_and_species_id", unique: true + t.index ["trainer_id"], name: "index_pokeviewer_pokedex_entries_on_trainer_id" + end + create_table "pokeviewer_pokemon", force: :cascade do |t| t.string "uuid", limit: 191, null: false t.integer "trainer_id" -- cgit 1.4.1