From 0f32f526b73ecfd10012c0db9d7c4a4f15251a73 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 10 Oct 2017 22:46:46 -0400 Subject: Added type and ability data to species model --- app/models/pokeviewer/ability.rb | 7 + app/models/pokeviewer/move.rb | 8 +- app/models/pokeviewer/pokemon.rb | 8 + app/models/pokeviewer/species.rb | 10 + .../20171011015325_create_pokeviewer_abilities.rb | 12 + ...171011015648_add_type_and_ability_to_species.rb | 19 + db/seeds.rb | 849 +++++++++++---------- test/dummy/db/schema.rb | 14 +- 8 files changed, 537 insertions(+), 390 deletions(-) create mode 100644 app/models/pokeviewer/ability.rb create mode 100644 db/migrate/20171011015325_create_pokeviewer_abilities.rb create mode 100644 db/migrate/20171011015648_add_type_and_ability_to_species.rb diff --git a/app/models/pokeviewer/ability.rb b/app/models/pokeviewer/ability.rb new file mode 100644 index 0000000..594b18c --- /dev/null +++ b/app/models/pokeviewer/ability.rb @@ -0,0 +1,7 @@ +module Pokeviewer + class Ability < ApplicationRecord + validates :name, presence: true, uniqueness: true + + validates :description, presence: true + end +end diff --git a/app/models/pokeviewer/move.rb b/app/models/pokeviewer/move.rb index 3ef6a9c..c63493a 100644 --- a/app/models/pokeviewer/move.rb +++ b/app/models/pokeviewer/move.rb @@ -10,10 +10,12 @@ module Pokeviewer validates :pp, presence: true, numericality: { greater_than_or_equal_to: 1, only_integer: true } - validates :move_type, presence: true - enumerize :move_type, in: [:normal, :fighting, :flying, :poison, :ground, + TYPES = [:normal, :fighting, :flying, :poison, :ground, :rock, :bug, :ghost, :steel, :mystery, :fire, :water, :grass, :electric, - :psychic, :ice, :dragon, :dark], predicates: true + :psychic, :ice, :dragon, :dark] + + validates :move_type, presence: true + enumerize :move_type, in: TYPES, predicates: true validates :rs_description, presence: true validates :frlg_description, presence: true diff --git a/app/models/pokeviewer/pokemon.rb b/app/models/pokeviewer/pokemon.rb index 268a417..1b690f5 100644 --- a/app/models/pokeviewer/pokemon.rb +++ b/app/models/pokeviewer/pokemon.rb @@ -200,6 +200,14 @@ module Pokeviewer "pokeviewer/items/#{Pokemon.pokeball.values.find_index(pokeball) + 1}.png" end + def ability + if second_ability + species.ability_2 + else + species.ability_1 + end + end + private def set_uuid diff --git a/app/models/pokeviewer/species.rb b/app/models/pokeviewer/species.rb index c69fd21..429e762 100644 --- a/app/models/pokeviewer/species.rb +++ b/app/models/pokeviewer/species.rb @@ -1,7 +1,17 @@ module Pokeviewer class Species < ApplicationRecord + extend Enumerize + has_many :pokemon, dependent: :restrict_with_exception validates :name, presence: true, uniqueness: true + + validates :type_1, presence: true + + enumerize :type_1, in: Move::TYPES + enumerize :type_2, in: Move::TYPES + + belongs_to :ability_1, class_name: "Ability" + belongs_to :ability_2, class_name: "Ability", optional: true end end diff --git a/db/migrate/20171011015325_create_pokeviewer_abilities.rb b/db/migrate/20171011015325_create_pokeviewer_abilities.rb new file mode 100644 index 0000000..a7f6b5f --- /dev/null +++ b/db/migrate/20171011015325_create_pokeviewer_abilities.rb @@ -0,0 +1,12 @@ +class CreatePokeviewerAbilities < ActiveRecord::Migration[5.1] + def change + create_table :pokeviewer_abilities do |t| + t.string :name, null: false, limit: 191 + t.string :description, null: false + + t.timestamps + end + + add_index :pokeviewer_abilities, :name, unique: true + end +end diff --git a/db/migrate/20171011015648_add_type_and_ability_to_species.rb b/db/migrate/20171011015648_add_type_and_ability_to_species.rb new file mode 100644 index 0000000..d7d274e --- /dev/null +++ b/db/migrate/20171011015648_add_type_and_ability_to_species.rb @@ -0,0 +1,19 @@ +class AddTypeAndAbilityToSpecies < ActiveRecord::Migration[5.1] + def change + change_table :pokeviewer_species do |t| + t.string :type_1, null: false, default: "" + t.string :type_2 + t.integer :ability_1_id, null: false, default: 0 + t.integer :ability_2_id + end + + change_column_default :pokeviewer_species, :type_1, nil + change_column_default :pokeviewer_species, :ability_1_id, nil + + add_foreign_key :pokeviewer_species, :pokeviewer_abilities, + column: :ability_1_id + + add_foreign_key :pokeviewer_species, :pokeviewer_abilities, + column: :ability_2_id + end +end diff --git a/db/seeds.rb b/db/seeds.rb index 5f9b54c..f010fdc 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,390 +1,467 @@ module Pokeviewer - Species.create(id: 386, name: "Deoxys") - Species.create(id: 385, name: "Jirachi") - Species.create(id: 384, name: "Rayquaza") - Species.create(id: 383, name: "Groudon") - Species.create(id: 382, name: "Kyogre") - Species.create(id: 381, name: "Latios") - Species.create(id: 380, name: "Latias") - Species.create(id: 379, name: "Registeel") - Species.create(id: 378, name: "Regice") - Species.create(id: 377, name: "Regirock") - Species.create(id: 376, name: "Metagross") - Species.create(id: 375, name: "Metang") - Species.create(id: 374, name: "Beldum") - Species.create(id: 373, name: "Salamence") - Species.create(id: 372, name: "Shelgon") - Species.create(id: 371, name: "Bagon") - Species.create(id: 370, name: "Luvdisc") - Species.create(id: 369, name: "Relicanth") - Species.create(id: 368, name: "Gorebyss") - Species.create(id: 367, name: "Huntail") - Species.create(id: 366, name: "Clamperl") - Species.create(id: 365, name: "Walrein") - Species.create(id: 364, name: "Sealeo") - Species.create(id: 363, name: "Spheal") - Species.create(id: 362, name: "Glalie") - Species.create(id: 361, name: "Snorunt") - Species.create(id: 360, name: "Wynaut") - Species.create(id: 359, name: "Absol") - Species.create(id: 358, name: "Chimecho") - Species.create(id: 357, name: "Tropius") - Species.create(id: 356, name: "Dusclops") - Species.create(id: 355, name: "Duskull") - Species.create(id: 354, name: "Banette") - Species.create(id: 353, name: "Shuppet") - Species.create(id: 352, name: "Kecleon") - Species.create(id: 351, name: "Castform") - Species.create(id: 350, name: "Milotic") - Species.create(id: 349, name: "Feebas") - Species.create(id: 348, name: "Armaldo") - Species.create(id: 347, name: "Anorith") - Species.create(id: 346, name: "Cradily") - Species.create(id: 345, name: "Lileep") - Species.create(id: 344, name: "Claydol") - Species.create(id: 343, name: "Baltoy") - Species.create(id: 342, name: "Crawdaunt") - Species.create(id: 341, name: "Corphish") - Species.create(id: 340, name: "Whiscash") - Species.create(id: 339, name: "Barboach") - Species.create(id: 338, name: "Solrock") - Species.create(id: 337, name: "Lunatone") - Species.create(id: 336, name: "Seviper") - Species.create(id: 335, name: "Zangoose") - Species.create(id: 334, name: "Altaria") - Species.create(id: 333, name: "Swablu") - Species.create(id: 332, name: "Cacturne") - Species.create(id: 331, name: "Cacnea") - Species.create(id: 330, name: "Flygon") - Species.create(id: 329, name: "Vibrava") - Species.create(id: 328, name: "Trapinch") - Species.create(id: 327, name: "Spinda") - Species.create(id: 326, name: "Grumpig") - Species.create(id: 325, name: "Spoink") - Species.create(id: 324, name: "Torkoal") - Species.create(id: 323, name: "Camerupt") - Species.create(id: 322, name: "Numel") - Species.create(id: 321, name: "Wailord") - Species.create(id: 320, name: "Wailmer") - Species.create(id: 319, name: "Sharpedo") - Species.create(id: 318, name: "Carvanha") - Species.create(id: 317, name: "Swalot") - Species.create(id: 316, name: "Gulpin") - Species.create(id: 315, name: "Roselia") - Species.create(id: 314, name: "Illumise") - Species.create(id: 313, name: "Volbeat") - Species.create(id: 312, name: "Minun") - Species.create(id: 311, name: "Plusle") - Species.create(id: 310, name: "Manectric") - Species.create(id: 309, name: "Electrike") - Species.create(id: 308, name: "Medicham") - Species.create(id: 307, name: "Meditite") - Species.create(id: 306, name: "Aggron") - Species.create(id: 305, name: "Lairon") - Species.create(id: 304, name: "Aron") - Species.create(id: 303, name: "Mawile") - Species.create(id: 302, name: "Sableye") - Species.create(id: 301, name: "Delcatty") - Species.create(id: 300, name: "Skitty") - Species.create(id: 299, name: "Nosepass") - Species.create(id: 298, name: "Azurill") - Species.create(id: 297, name: "Hariyama") - Species.create(id: 296, name: "Makuhita") - Species.create(id: 295, name: "Exploud") - Species.create(id: 294, name: "Loudred") - Species.create(id: 293, name: "Whismur") - Species.create(id: 292, name: "Shedinja") - Species.create(id: 291, name: "Ninjask") - Species.create(id: 290, name: "Nincada") - Species.create(id: 289, name: "Slaking") - Species.create(id: 288, name: "Vigoroth") - Species.create(id: 287, name: "Slakoth") - Species.create(id: 286, name: "Breloom") - Species.create(id: 285, name: "Shroomish") - Species.create(id: 284, name: "Masquerain") - Species.create(id: 283, name: "Surskit") - Species.create(id: 282, name: "Gardevoir") - Species.create(id: 281, name: "Kirlia") - Species.create(id: 280, name: "Ralts") - Species.create(id: 279, name: "Pelipper") - Species.create(id: 278, name: "Wingull") - Species.create(id: 277, name: "Swellow") - Species.create(id: 276, name: "Taillow") - Species.create(id: 275, name: "Shiftry") - Species.create(id: 274, name: "Nuzleaf") - Species.create(id: 273, name: "Seedot") - Species.create(id: 272, name: "Ludicolo") - Species.create(id: 271, name: "Lombre") - Species.create(id: 270, name: "Lotad") - Species.create(id: 269, name: "Dustox") - Species.create(id: 268, name: "Cascoon") - Species.create(id: 267, name: "Beautifly") - Species.create(id: 266, name: "Silcoon") - Species.create(id: 265, name: "Wurmple") - Species.create(id: 264, name: "Linoone") - Species.create(id: 263, name: "Zigzagoon") - Species.create(id: 262, name: "Mightyena") - Species.create(id: 261, name: "Poochyena") - Species.create(id: 260, name: "Swampert") - Species.create(id: 259, name: "Marshtomp") - Species.create(id: 258, name: "Mudkip") - Species.create(id: 257, name: "Blaziken") - Species.create(id: 256, name: "Combusken") - Species.create(id: 255, name: "Torchic") - Species.create(id: 254, name: "Sceptile") - Species.create(id: 253, name: "Grovyle") - Species.create(id: 252, name: "Treecko") - Species.create(id: 251, name: "Celebi") - Species.create(id: 250, name: "Ho-Oh") - Species.create(id: 249, name: "Lugia") - Species.create(id: 248, name: "Tyranitar") - Species.create(id: 247, name: "Pupitar") - Species.create(id: 246, name: "Larvitar") - Species.create(id: 245, name: "Suicune") - Species.create(id: 244, name: "Entei") - Species.create(id: 243, name: "Raikou") - Species.create(id: 242, name: "Blissey") - Species.create(id: 241, name: "Miltank") - Species.create(id: 240, name: "Magby") - Species.create(id: 239, name: "Elekid") - Species.create(id: 238, name: "Smoochum") - Species.create(id: 237, name: "Hitmontop") - Species.create(id: 236, name: "Tyrogue") - Species.create(id: 235, name: "Smeargle") - Species.create(id: 234, name: "Stantler") - Species.create(id: 233, name: "Porygon2") - Species.create(id: 232, name: "Donphan") - Species.create(id: 231, name: "Phanpy") - Species.create(id: 230, name: "Kingdra") - Species.create(id: 229, name: "Houndoom") - Species.create(id: 228, name: "Houndour") - Species.create(id: 227, name: "Skarmory") - Species.create(id: 226, name: "Mantine") - Species.create(id: 225, name: "Delibird") - Species.create(id: 224, name: "Octillery") - Species.create(id: 223, name: "Remoraid") - Species.create(id: 222, name: "Corsola") - Species.create(id: 221, name: "Piloswine") - Species.create(id: 220, name: "Swinub") - Species.create(id: 219, name: "Magcargo") - Species.create(id: 218, name: "Slugma") - Species.create(id: 217, name: "Ursaring") - Species.create(id: 216, name: "Teddiursa") - Species.create(id: 215, name: "Sneasel") - Species.create(id: 214, name: "Heracross") - Species.create(id: 213, name: "Shuckle") - Species.create(id: 212, name: "Scizor") - Species.create(id: 211, name: "Qwilfish") - Species.create(id: 210, name: "Granbull") - Species.create(id: 209, name: "Snubbull") - Species.create(id: 208, name: "Steelix") - Species.create(id: 207, name: "Gligar") - Species.create(id: 206, name: "Dunsparce") - Species.create(id: 205, name: "Forretress") - Species.create(id: 204, name: "Pineco") - Species.create(id: 203, name: "Girafarig") - Species.create(id: 202, name: "Wobbuffet") - Species.create(id: 201, name: "Unown") - Species.create(id: 200, name: "Misdreavus") - Species.create(id: 199, name: "Slowking") - Species.create(id: 198, name: "Murkrow") - Species.create(id: 197, name: "Umbreon") - Species.create(id: 196, name: "Espeon") - Species.create(id: 195, name: "Quagsire") - Species.create(id: 194, name: "Wooper") - Species.create(id: 193, name: "Yanma") - Species.create(id: 192, name: "Sunflora") - Species.create(id: 191, name: "Sunkern") - Species.create(id: 190, name: "Aipom") - Species.create(id: 189, name: "Jumpluff") - Species.create(id: 188, name: "Skiploom") - Species.create(id: 187, name: "Hoppip") - Species.create(id: 186, name: "Politoed") - Species.create(id: 185, name: "Sudowoodo") - Species.create(id: 184, name: "Azumarill") - Species.create(id: 183, name: "Marill") - Species.create(id: 182, name: "Bellossom") - Species.create(id: 181, name: "Ampharos") - Species.create(id: 180, name: "Flaaffy") - Species.create(id: 179, name: "Mareep") - Species.create(id: 178, name: "Xatu") - Species.create(id: 177, name: "Natu") - Species.create(id: 176, name: "Togetic") - Species.create(id: 175, name: "Togepi") - Species.create(id: 174, name: "Igglybuff") - Species.create(id: 173, name: "Cleffa") - Species.create(id: 172, name: "Pichu") - Species.create(id: 171, name: "Lanturn") - Species.create(id: 170, name: "Chinchou") - Species.create(id: 169, name: "Crobat") - Species.create(id: 168, name: "Ariados") - Species.create(id: 167, name: "Spinarak") - Species.create(id: 166, name: "Ledian") - Species.create(id: 165, name: "Ledyba") - Species.create(id: 164, name: "Noctowl") - Species.create(id: 163, name: "Hoothoot") - Species.create(id: 162, name: "Furret") - Species.create(id: 161, name: "Sentret") - Species.create(id: 160, name: "Feraligatr") - Species.create(id: 159, name: "Croconaw") - Species.create(id: 158, name: "Totodile") - Species.create(id: 157, name: "Typhlosion") - Species.create(id: 156, name: "Quilava") - Species.create(id: 155, name: "Cyndaquil") - Species.create(id: 154, name: "Meganium") - Species.create(id: 153, name: "Bayleef") - Species.create(id: 152, name: "Chikorita") - Species.create(id: 151, name: "Mew") - Species.create(id: 150, name: "Mewtwo") - Species.create(id: 149, name: "Dragonite") - Species.create(id: 148, name: "Dragonair") - Species.create(id: 147, name: "Dratini") - Species.create(id: 146, name: "Moltres") - Species.create(id: 145, name: "Zapdos") - Species.create(id: 144, name: "Articuno") - Species.create(id: 143, name: "Snorlax") - Species.create(id: 142, name: "Aerodactyl") - Species.create(id: 141, name: "Kabutops") - Species.create(id: 140, name: "Kabuto") - Species.create(id: 139, name: "Omastar") - Species.create(id: 138, name: "Omanyte") - Species.create(id: 137, name: "Porygon") - Species.create(id: 136, name: "Flareon") - Species.create(id: 135, name: "Jolteon") - Species.create(id: 134, name: "Vaporeon") - Species.create(id: 133, name: "Eevee") - Species.create(id: 132, name: "Ditto") - Species.create(id: 131, name: "Lapras") - Species.create(id: 130, name: "Gyarados") - Species.create(id: 129, name: "Magikarp") - Species.create(id: 128, name: "Tauros") - Species.create(id: 127, name: "Pinsir") - Species.create(id: 126, name: "Magmar") - Species.create(id: 125, name: "Electabuzz") - Species.create(id: 124, name: "Jynx") - Species.create(id: 123, name: "Scyther") - Species.create(id: 122, name: "Mr. Mime") - Species.create(id: 121, name: "Starmie") - Species.create(id: 120, name: "Staryu") - Species.create(id: 119, name: "Seaking") - Species.create(id: 118, name: "Goldeen") - Species.create(id: 117, name: "Seadra") - Species.create(id: 116, name: "Horsea") - Species.create(id: 115, name: "Kangaskhan") - Species.create(id: 114, name: "Tangela") - Species.create(id: 113, name: "Chansey") - Species.create(id: 112, name: "Rhydon") - Species.create(id: 111, name: "Rhyhorn") - Species.create(id: 110, name: "Weezing") - Species.create(id: 109, name: "Koffing") - Species.create(id: 108, name: "Lickitung") - Species.create(id: 107, name: "Hitmonchan") - Species.create(id: 106, name: "Hitmonlee") - Species.create(id: 105, name: "Marowak") - Species.create(id: 104, name: "Cubone") - Species.create(id: 103, name: "Exeggutor") - Species.create(id: 102, name: "Exeggcute") - Species.create(id: 101, name: "Electrode") - Species.create(id: 100, name: "Voltorb") - Species.create(id: 99, name: "Kingler") - Species.create(id: 98, name: "Krabby") - Species.create(id: 97, name: "Hypno") - Species.create(id: 96, name: "Drowzee") - Species.create(id: 95, name: "Onix") - Species.create(id: 94, name: "Gengar") - Species.create(id: 93, name: "Haunter") - Species.create(id: 92, name: "Gastly") - Species.create(id: 91, name: "Cloyster") - Species.create(id: 90, name: "Shellder") - Species.create(id: 89, name: "Muk") - Species.create(id: 88, name: "Grimer") - Species.create(id: 87, name: "Dewgong") - Species.create(id: 86, name: "Seel") - Species.create(id: 85, name: "Dodrio") - Species.create(id: 84, name: "Doduo") - Species.create(id: 83, name: "Farfetch'd") - Species.create(id: 82, name: "Magneton") - Species.create(id: 81, name: "Magnemite") - Species.create(id: 80, name: "Slowbro") - Species.create(id: 79, name: "Slowpoke") - Species.create(id: 78, name: "Rapidash") - Species.create(id: 77, name: "Ponyta") - Species.create(id: 76, name: "Golem") - Species.create(id: 75, name: "Graveler") - Species.create(id: 74, name: "Geodude") - Species.create(id: 73, name: "Tentacruel") - Species.create(id: 72, name: "Tentacool") - Species.create(id: 71, name: "Victreebel") - Species.create(id: 70, name: "Weepinbell") - Species.create(id: 69, name: "Bellsprout") - Species.create(id: 68, name: "Machamp") - Species.create(id: 67, name: "Machoke") - Species.create(id: 66, name: "Machop") - Species.create(id: 65, name: "Alakazam") - Species.create(id: 64, name: "Kadabra") - Species.create(id: 63, name: "Abra") - Species.create(id: 62, name: "Poliwrath") - Species.create(id: 61, name: "Poliwhirl") - Species.create(id: 60, name: "Poliwag") - Species.create(id: 59, name: "Arcanine") - Species.create(id: 58, name: "Growlithe") - Species.create(id: 57, name: "Primeape") - Species.create(id: 56, name: "Mankey") - Species.create(id: 55, name: "Golduck") - Species.create(id: 54, name: "Psyduck") - Species.create(id: 53, name: "Persian") - Species.create(id: 52, name: "Meowth") - Species.create(id: 51, name: "Dugtrio") - Species.create(id: 50, name: "Diglett") - Species.create(id: 49, name: "Venomoth") - Species.create(id: 48, name: "Venonat") - Species.create(id: 47, name: "Parasect") - Species.create(id: 46, name: "Paras") - Species.create(id: 45, name: "Vileplume") - Species.create(id: 44, name: "Gloom") - Species.create(id: 43, name: "Oddish") - Species.create(id: 42, name: "Golbat") - Species.create(id: 41, name: "Zubat") - Species.create(id: 40, name: "Wigglytuff") - Species.create(id: 39, name: "Jigglypuff") - Species.create(id: 38, name: "Ninetales") - Species.create(id: 37, name: "Vulpix") - Species.create(id: 36, name: "Clefable") - Species.create(id: 35, name: "Clefairy") - Species.create(id: 34, name: "Nidoking") - Species.create(id: 33, name: "Nidorino") - Species.create(id: 32, name: "Nidoran♂") - Species.create(id: 31, name: "Nidoqueen") - Species.create(id: 30, name: "Nidorina") - Species.create(id: 29, name: "Nidoran♀") - Species.create(id: 28, name: "Sandslash") - Species.create(id: 27, name: "Sandshrew") - Species.create(id: 26, name: "Raichu") - Species.create(id: 25, name: "Pikachu") - Species.create(id: 24, name: "Arbok") - Species.create(id: 23, name: "Ekans") - Species.create(id: 22, name: "Fearow") - Species.create(id: 21, name: "Spearow") - Species.create(id: 20, name: "Raticate") - Species.create(id: 19, name: "Rattata") - Species.create(id: 18, name: "Pidgeot") - Species.create(id: 17, name: "Pidgeotto") - Species.create(id: 16, name: "Pidgey") - Species.create(id: 15, name: "Beedrill") - Species.create(id: 14, name: "Kakuna") - Species.create(id: 13, name: "Weedle") - Species.create(id: 12, name: "Butterfree") - Species.create(id: 11, name: "Metapod") - Species.create(id: 10, name: "Caterpie") - Species.create(id: 9, name: "Blastoise") - Species.create(id: 8, name: "Wartortle") - Species.create(id: 7, name: "Squirtle") - Species.create(id: 6, name: "Charizard") - Species.create(id: 5, name: "Charmeleon") - Species.create(id: 4, name: "Charmander") - Species.create(id: 3, name: "Venusaur") - Species.create(id: 2, name: "Ivysaur") - Species.create(id: 1, name: "Bulbasaur") + Ability.create(id: 1, name: "Stench", description: "Helps repel wild POKéMON.") + Ability.create(id: 2, name: "Drizzle", description: "Summons rain in battle.") + Ability.create(id: 3, name: "Speed Boost", description: "Gradually boosts SPEED.") + Ability.create(id: 4, name: "Battle Armor", description: "Blocks critical hits.") + Ability.create(id: 5, name: "Sturdy", description: "Negates 1-hit KO attacks.") + Ability.create(id: 6, name: "Damp", description: "Prevents self-destruction.") + Ability.create(id: 7, name: "Limber", description: "Prevents paralysis.") + Ability.create(id: 8, name: "Sand Veil", description: "Ups evasion in a sandstorm.") + Ability.create(id: 9, name: "Static", description: "Paralyzes on contact.") + Ability.create(id: 10, name: "Volt Absorb", description: "Turns electricity into HP.") + Ability.create(id: 11, name: "Water Absorb", description: "Changes water into HP.") + Ability.create(id: 12, name: "Oblivious", description: "Prevents attraction.") + Ability.create(id: 13, name: "Cloud Nine", description: "Negates weather effects.") + Ability.create(id: 14, name: "Compound Eyes", description: "Raises accuracy.") + Ability.create(id: 15, name: "Insomnia", description: "Prevents sleep.") + Ability.create(id: 16, name: "Color Change", description: "Changes type to foe's move.") + Ability.create(id: 17, name: "Immunity", description: "Prevents poisoning.") + Ability.create(id: 18, name: "Flash Fire", description: "Powers up if hit by fire.") + Ability.create(id: 19, name: "Shield Dust", description: "Prevents added effects.") + Ability.create(id: 20, name: "Own Tempo", description: "Prevents confusion.") + Ability.create(id: 21, name: "Suction Cups", description: "Firmly anchors the body.") + Ability.create(id: 22, name: "Intimidate", description: "Lowers the foe's ATTACK.") + Ability.create(id: 23, name: "Shadow Tag", description: "Prevents the foe's escape.") + Ability.create(id: 24, name: "Rough Skin", description: "Hurts to touch.") + Ability.create(id: 25, name: "Wonder Guard", description: "\"Super effective\" hits.") + Ability.create(id: 26, name: "Levitate", description: "Not hit by GROUND attacks.") + Ability.create(id: 27, name: "Effect Spore", description: "Leaves spores on contact.") + Ability.create(id: 28, name: "Synchronize", description: "Passes on status problems.") + Ability.create(id: 29, name: "Clear Body", description: "Prevents ability reduction.") + Ability.create(id: 30, name: "Natural Cure", description: "Heals upon switching out.") + Ability.create(id: 31, name: "Lightning Rod", description: "Draws electrical moves.") + Ability.create(id: 32, name: "Serene Grace", description: "Promotes added effects.") + Ability.create(id: 33, name: "Swift Swim", description: "Raises SPEED in rain.") + Ability.create(id: 34, name: "Chlorophyll", description: "Raises SPEED in sunshine.") + Ability.create(id: 35, name: "Illuminate", description: "Encounter rate increases.") + Ability.create(id: 36, name: "Trace", description: "Copies special ability.") + Ability.create(id: 37, name: "Huge Power", description: "Raises ATTACK.") + Ability.create(id: 38, name: "Poison Point", description: "Poisons foe on contact.") + Ability.create(id: 39, name: "Inner Focus", description: "Prevents flinching.") + Ability.create(id: 40, name: "Magma Armor", description: "Prevents freezing.") + Ability.create(id: 41, name: "Water Veil", description: "Prevents burns.") + Ability.create(id: 42, name: "Magnet Pull", description: "Traps STEEL-type POKéMON.") + Ability.create(id: 43, name: "Soundproof", description: "Avoids sound-based moves.") + Ability.create(id: 44, name: "Rain Dish", description: "Slight HP recovery in rain.") + Ability.create(id: 45, name: "Sand Stream", description: "Summons a sandstorm.") + Ability.create(id: 46, name: "Pressure", description: "Raises foe's PP usage.") + Ability.create(id: 47, name: "Thick Fat", description: "Heat-and-cold protection.") + Ability.create(id: 48, name: "Early Bird", description: "Awakens quickly from sleep.") + Ability.create(id: 49, name: "Flame Body", description: "Burns the foe on contact.") + Ability.create(id: 50, name: "Run Away", description: "Makes escaping easier.") + Ability.create(id: 51, name: "Keen Eye", description: "Prevents loss of accuracy.") + Ability.create(id: 52, name: "Hyper Cutter", description: "Prevents ATTACK reduction.") + Ability.create(id: 53, name: "Pickup", description: "May pick up items.") + Ability.create(id: 54, name: "Truant", description: "Moves only every two turns.") + Ability.create(id: 55, name: "Hustle", description: "Trades accuracy for power.") + Ability.create(id: 56, name: "Cute Charm", description: "Infatuates on contact.") + Ability.create(id: 57, name: "Plus", description: "Powers up with MINUS.") + Ability.create(id: 58, name: "Minus", description: "Powers up with PLUS.") + Ability.create(id: 59, name: "Forecast", description: "Changes with the weather.") + Ability.create(id: 60, name: "Sticky Hold", description: "Prevents item theft.") + Ability.create(id: 61, name: "Shed Skin", description: "Heals the body by shedding.") + Ability.create(id: 62, name: "Guts", description: "Ups ATTACK if suffering.") + Ability.create(id: 63, name: "Marvel Scale", description: "Ups DEFENSE if suffering.") + Ability.create(id: 64, name: "Liquid Ooze", description: "Draining causes injury.") + Ability.create(id: 65, name: "Overgrow", description: "Ups GRASS moves in a pinch.") + Ability.create(id: 66, name: "Blaze", description: "Ups FIRE moves in a pinch.") + Ability.create(id: 67, name: "Torrent", description: "Ups WATER moves in a pinch.") + Ability.create(id: 68, name: "Swarm", description: "Ups BUG moves in a pinch.") + Ability.create(id: 69, name: "Rock Head", description: "Prevents recoil damage.") + Ability.create(id: 70, name: "Drought", description: "Summons sunlight in battle.") + Ability.create(id: 71, name: "Arena Trap", description: "Prevents fleeing.") + Ability.create(id: 72, name: "Vital Spirit", description: "Prevents sleep.") + Ability.create(id: 73, name: "White Smoke", description: "Prevents ability reduction.") + Ability.create(id: 74, name: "Pure Power", description: "Raises ATTACK.") + Ability.create(id: 75, name: "Shell Armor", description: "Blocks critical hits.") + Ability.create(id: 76, name: "Air Lock", description: "Negates weather effects.") + + Species.create(id: 1, name: "Bulbasaur", type_1: :grass, type_2: :poison, ability_1_id: 65) + Species.create(id: 2, name: "Ivysaur", type_1: :grass, type_2: :poison, ability_1_id: 65) + Species.create(id: 3, name: "Venusaur", type_1: :grass, type_2: :poison, ability_1_id: 65) + Species.create(id: 4, name: "Charmander", type_1: :fire, ability_1_id: 66) + Species.create(id: 5, name: "Charmeleon", type_1: :fire, ability_1_id: 66) + Species.create(id: 6, name: "Charizard", type_1: :fire, type_2: :flying, ability_1_id: 66) + Species.create(id: 7, name: "Squirtle", type_1: :water, ability_1_id: 67) + Species.create(id: 8, name: "Wartortle", type_1: :water, ability_1_id: 67) + Species.create(id: 9, name: "Blastoise", type_1: :water, ability_1_id: 67) + Species.create(id: 10, name: "Caterpie", type_1: :bug, ability_1_id: 19) + Species.create(id: 11, name: "Metapod", type_1: :bug, ability_1_id: 61) + Species.create(id: 12, name: "Butterfree", type_1: :bug, type_2: :flying, ability_1_id: 14) + Species.create(id: 13, name: "Weedle", type_1: :bug, type_2: :poison, ability_1_id: 19) + Species.create(id: 14, name: "Kakuna", type_1: :bug, type_2: :poison, ability_1_id: 61) + Species.create(id: 15, name: "Beedrill", type_1: :bug, type_2: :poison, ability_1_id: 68) + Species.create(id: 16, name: "Pidgey", type_1: :normal, type_2: :flying, ability_1_id: 51, ability_2_id: 77) + Species.create(id: 17, name: "Pidgeotto", type_1: :normal, type_2: :flying, ability_1_id: 51, ability_2_id: 77) + Species.create(id: 18, name: "Pidgeot", type_1: :normal, type_2: :flying, ability_1_id: 51, ability_2_id: 77) + Species.create(id: 19, name: "Rattata", type_1: :normal, ability_1_id: 50, ability_2_id: 62) + Species.create(id: 20, name: "Raticate", type_1: :normal, ability_1_id: 50, ability_2_id: 62) + Species.create(id: 21, name: "Spearow", type_1: :normal, type_2: :flying, ability_1_id: 51) + Species.create(id: 22, name: "Fearow", type_1: :normal, type_2: :flying, ability_1_id: 51) + Species.create(id: 23, name: "Ekans", type_1: :poison, ability_1_id: 22, ability_2_id: 61) + Species.create(id: 24, name: "Arbok", type_1: :poison, ability_1_id: 22, ability_2_id: 61) + Species.create(id: 25, name: "Pikachu", type_1: :electric, ability_1_id: 9) + Species.create(id: 26, name: "Raichu", type_1: :electric, ability_1_id: 9) + Species.create(id: 27, name: "Sandshrew", type_1: :ground, ability_1_id: 8) + Species.create(id: 28, name: "Sandslash", type_1: :ground, ability_1_id: 8) + Species.create(id: 29, name: "Nidoran♀", type_1: :poison, ability_1_id: 38, ability_2_id: 79) + Species.create(id: 30, name: "Nidorina", type_1: :poison, ability_1_id: 38, ability_2_id: 79) + Species.create(id: 31, name: "Nidoqueen", type_1: :poison, type_2: :ground, ability_1_id: 38, ability_2_id: 79) + Species.create(id: 32, name: "Nidoran♂", type_1: :poison, ability_1_id: 38, ability_2_id: 79) + Species.create(id: 33, name: "Nidorino", type_1: :poison, ability_1_id: 38, ability_2_id: 79) + Species.create(id: 34, name: "Nidoking", type_1: :poison, type_2: :ground, ability_1_id: 38, ability_2_id: 79) + Species.create(id: 35, name: "Clefairy", type_1: :normal, ability_1_id: 56, ability_2_id: 98) + Species.create(id: 36, name: "Clefable", type_1: :normal, ability_1_id: 56, ability_2_id: 98) + Species.create(id: 37, name: "Vulpix", type_1: :fire, ability_1_id: 18) + Species.create(id: 38, name: "Ninetales", type_1: :fire, ability_1_id: 18) + Species.create(id: 39, name: "Jigglypuff", type_1: :normal, ability_1_id: 56, ability_2_id: 172) + Species.create(id: 40, name: "Wigglytuff", type_1: :normal, ability_1_id: 56, ability_2_id: 172) + Species.create(id: 41, name: "Zubat", type_1: :poison, type_2: :flying, ability_1_id: 39) + Species.create(id: 42, name: "Golbat", type_1: :poison, type_2: :flying, ability_1_id: 39) + Species.create(id: 43, name: "Oddish", type_1: :grass, type_2: :poison, ability_1_id: 34) + Species.create(id: 44, name: "Gloom", type_1: :grass, type_2: :poison, ability_1_id: 34) + Species.create(id: 45, name: "Vileplume", type_1: :grass, type_2: :poison, ability_1_id: 34) + Species.create(id: 46, name: "Paras", type_1: :bug, type_2: :grass, ability_1_id: 27, ability_2_id: 87) + Species.create(id: 47, name: "Parasect", type_1: :bug, type_2: :grass, ability_1_id: 27, ability_2_id: 87) + Species.create(id: 48, name: "Venonat", type_1: :bug, type_2: :poison, ability_1_id: 14, ability_2_id: 110) + Species.create(id: 49, name: "Venomoth", type_1: :bug, type_2: :poison, ability_1_id: 19, ability_2_id: 110) + Species.create(id: 50, name: "Diglett", type_1: :ground, ability_1_id: 8, ability_2_id: 71) + Species.create(id: 51, name: "Dugtrio", type_1: :ground, ability_1_id: 8, ability_2_id: 71) + Species.create(id: 52, name: "Meowth", type_1: :normal, ability_1_id: 53, ability_2_id: 101) + Species.create(id: 53, name: "Persian", type_1: :normal, ability_1_id: 7, ability_2_id: 101) + Species.create(id: 54, name: "Psyduck", type_1: :water, ability_1_id: 6, ability_2_id: 13) + Species.create(id: 55, name: "Golduck", type_1: :water, ability_1_id: 6, ability_2_id: 13) + Species.create(id: 56, name: "Mankey", type_1: :fighting, ability_1_id: 72, ability_2_id: 83) + Species.create(id: 57, name: "Primeape", type_1: :fighting, ability_1_id: 72, ability_2_id: 83) + Species.create(id: 58, name: "Growlithe", type_1: :fire, ability_1_id: 22, ability_2_id: 18) + Species.create(id: 59, name: "Arcanine", type_1: :fire, ability_1_id: 22, ability_2_id: 18) + Species.create(id: 60, name: "Poliwag", type_1: :water, ability_1_id: 11, ability_2_id: 6) + Species.create(id: 61, name: "Poliwhirl", type_1: :water, ability_1_id: 11, ability_2_id: 6) + Species.create(id: 62, name: "Poliwrath", type_1: :water, type_2: :fighting, ability_1_id: 11, ability_2_id: 6) + Species.create(id: 63, name: "Abra", type_1: :psychic, ability_1_id: 28, ability_2_id: 39) + Species.create(id: 64, name: "Kadabra", type_1: :psychic, ability_1_id: 28, ability_2_id: 39) + Species.create(id: 65, name: "Alakazam", type_1: :psychic, ability_1_id: 28, ability_2_id: 39) + Species.create(id: 66, name: "Machop", type_1: :fighting, ability_1_id: 62, ability_2_id: 99) + Species.create(id: 67, name: "Machoke", type_1: :fighting, ability_1_id: 62, ability_2_id: 99) + Species.create(id: 68, name: "Machamp", type_1: :fighting, ability_1_id: 62, ability_2_id: 99) + Species.create(id: 69, name: "Bellsprout", type_1: :grass, type_2: :poison, ability_1_id: 34) + Species.create(id: 70, name: "Weepinbell", type_1: :grass, type_2: :poison, ability_1_id: 34) + Species.create(id: 71, name: "Victreebel", type_1: :grass, type_2: :poison, ability_1_id: 34) + Species.create(id: 72, name: "Tentacool", type_1: :water, type_2: :poison, ability_1_id: 29, ability_2_id: 64) + Species.create(id: 73, name: "Tentacruel", type_1: :water, type_2: :poison, ability_1_id: 29, ability_2_id: 64) + Species.create(id: 74, name: "Geodude", type_1: :rock, type_2: :ground, ability_1_id: 69, ability_2_id: 5) + Species.create(id: 75, name: "Graveler", type_1: :rock, type_2: :ground, ability_1_id: 69, ability_2_id: 5) + Species.create(id: 76, name: "Golem", type_1: :rock, type_2: :ground, ability_1_id: 69, ability_2_id: 5) + Species.create(id: 77, name: "Ponyta", type_1: :fire, ability_1_id: 50, ability_2_id: 18) + Species.create(id: 78, name: "Rapidash", type_1: :fire, ability_1_id: 50, ability_2_id: 18) + Species.create(id: 79, name: "Slowpoke", type_1: :water, type_2: :psychic, ability_1_id: 12, ability_2_id: 20) + Species.create(id: 80, name: "Slowbro", type_1: :water, type_2: :psychic, ability_1_id: 12, ability_2_id: 20) + Species.create(id: 81, name: "Magnemite", type_1: :electric, type_2: :steel, ability_1_id: 42, ability_2_id: 5) + Species.create(id: 82, name: "Magneton", type_1: :electric, type_2: :steel, ability_1_id: 42, ability_2_id: 5) + Species.create(id: 83, name: "Farfetch'd", type_1: :normal, type_2: :flying, ability_1_id: 51, ability_2_id: 39) + Species.create(id: 84, name: "Doduo", type_1: :normal, type_2: :flying, ability_1_id: 50, ability_2_id: 48) + Species.create(id: 85, name: "Dodrio", type_1: :normal, type_2: :flying, ability_1_id: 50, ability_2_id: 48) + Species.create(id: 86, name: "Seel", type_1: :water, ability_1_id: 47, ability_2_id: 93) + Species.create(id: 87, name: "Dewgong", type_1: :water, type_2: :ice, ability_1_id: 47, ability_2_id: 93) + Species.create(id: 88, name: "Grimer", type_1: :poison, ability_1_id: 1, ability_2_id: 60) + Species.create(id: 89, name: "Muk", type_1: :poison, ability_1_id: 1, ability_2_id: 60) + Species.create(id: 90, name: "Shellder", type_1: :water, ability_1_id: 75, ability_2_id: 92) + Species.create(id: 91, name: "Cloyster", type_1: :water, type_2: :ice, ability_1_id: 75, ability_2_id: 92) + Species.create(id: 92, name: "Gastly", type_1: :ghost, type_2: :poison, ability_1_id: 26) + Species.create(id: 93, name: "Haunter", type_1: :ghost, type_2: :poison, ability_1_id: 26) + Species.create(id: 94, name: "Gengar", type_1: :ghost, type_2: :poison, ability_1_id: 130) + Species.create(id: 95, name: "Onix", type_1: :rock, type_2: :ground, ability_1_id: 69, ability_2_id: 5) + Species.create(id: 96, name: "Drowzee", type_1: :psychic, ability_1_id: 15, ability_2_id: 108) + Species.create(id: 97, name: "Hypno", type_1: :psychic, ability_1_id: 15, ability_2_id: 108) + Species.create(id: 98, name: "Krabby", type_1: :water, ability_1_id: 52, ability_2_id: 75) + Species.create(id: 99, name: "Kingler", type_1: :water, ability_1_id: 52, ability_2_id: 75) + Species.create(id: 100, name: "Voltorb", type_1: :electric, ability_1_id: 43, ability_2_id: 9) + Species.create(id: 101, name: "Electrode", type_1: :electric, ability_1_id: 43, ability_2_id: 9) + Species.create(id: 102, name: "Exeggcute", type_1: :grass, type_2: :psychic, ability_1_id: 34) + Species.create(id: 103, name: "Exeggutor", type_1: :grass, type_2: :psychic, ability_1_id: 34) + Species.create(id: 104, name: "Cubone", type_1: :ground, ability_1_id: 69, ability_2_id: 31) + Species.create(id: 105, name: "Marowak", type_1: :ground, ability_1_id: 69, ability_2_id: 31) + Species.create(id: 106, name: "Hitmonlee", type_1: :fighting, ability_1_id: 7, ability_2_id: 120) + Species.create(id: 107, name: "Hitmonchan", type_1: :fighting, ability_1_id: 51, ability_2_id: 89) + Species.create(id: 108, name: "Lickitung", type_1: :normal, ability_1_id: 20, ability_2_id: 12) + Species.create(id: 109, name: "Koffing", type_1: :poison, ability_1_id: 26) + Species.create(id: 110, name: "Weezing", type_1: :poison, ability_1_id: 26) + Species.create(id: 111, name: "Rhyhorn", type_1: :ground, type_2: :rock, ability_1_id: 31, ability_2_id: 69) + Species.create(id: 112, name: "Rhydon", type_1: :ground, type_2: :rock, ability_1_id: 31, ability_2_id: 69) + Species.create(id: 113, name: "Chansey", type_1: :normal, ability_1_id: 30, ability_2_id: 32) + Species.create(id: 114, name: "Tangela", type_1: :grass, ability_1_id: 34, ability_2_id: 102) + Species.create(id: 115, name: "Kangaskhan", type_1: :normal, ability_1_id: 48, ability_2_id: 113) + Species.create(id: 116, name: "Horsea", type_1: :water, ability_1_id: 33, ability_2_id: 97) + Species.create(id: 117, name: "Seadra", type_1: :water, ability_1_id: 38, ability_2_id: 97) + Species.create(id: 118, name: "Goldeen", type_1: :water, ability_1_id: 33, ability_2_id: 41) + Species.create(id: 119, name: "Seaking", type_1: :water, ability_1_id: 33, ability_2_id: 41) + Species.create(id: 120, name: "Staryu", type_1: :water, ability_1_id: 35, ability_2_id: 30) + Species.create(id: 121, name: "Starmie", type_1: :water, type_2: :psychic, ability_1_id: 35, ability_2_id: 30) + Species.create(id: 122, name: "Mr. Mime", type_1: :psychic, ability_1_id: 43, ability_2_id: 111) + Species.create(id: 123, name: "Scyther", type_1: :bug, type_2: :flying, ability_1_id: 68, ability_2_id: 101) + Species.create(id: 124, name: "Jynx", type_1: :ice, type_2: :psychic, ability_1_id: 12, ability_2_id: 108) + Species.create(id: 125, name: "Electabuzz", type_1: :electric, ability_1_id: 9) + Species.create(id: 126, name: "Magmar", type_1: :fire, ability_1_id: 49) + Species.create(id: 127, name: "Pinsir", type_1: :bug, ability_1_id: 52, ability_2_id: 104) + Species.create(id: 128, name: "Tauros", type_1: :normal, ability_1_id: 22, ability_2_id: 83) + Species.create(id: 129, name: "Magikarp", type_1: :water, ability_1_id: 33) + Species.create(id: 130, name: "Gyarados", type_1: :water, type_2: :flying, ability_1_id: 22) + Species.create(id: 131, name: "Lapras", type_1: :water, type_2: :ice, ability_1_id: 11, ability_2_id: 75) + Species.create(id: 132, name: "Ditto", type_1: :normal, ability_1_id: 7) + Species.create(id: 133, name: "Eevee", type_1: :normal, ability_1_id: 50, ability_2_id: 91) + Species.create(id: 134, name: "Vaporeon", type_1: :water, ability_1_id: 11) + Species.create(id: 135, name: "Jolteon", type_1: :electric, ability_1_id: 10) + Species.create(id: 136, name: "Flareon", type_1: :fire, ability_1_id: 18) + Species.create(id: 137, name: "Porygon", type_1: :normal, ability_1_id: 36, ability_2_id: 88) + Species.create(id: 138, name: "Omanyte", type_1: :rock, type_2: :water, ability_1_id: 33, ability_2_id: 75) + Species.create(id: 139, name: "Omastar", type_1: :rock, type_2: :water, ability_1_id: 33, ability_2_id: 75) + Species.create(id: 140, name: "Kabuto", type_1: :rock, type_2: :water, ability_1_id: 33, ability_2_id: 4) + Species.create(id: 141, name: "Kabutops", type_1: :rock, type_2: :water, ability_1_id: 33, ability_2_id: 4) + Species.create(id: 142, name: "Aerodactyl", type_1: :rock, type_2: :flying, ability_1_id: 69, ability_2_id: 46) + Species.create(id: 143, name: "Snorlax", type_1: :normal, ability_1_id: 17, ability_2_id: 47) + Species.create(id: 144, name: "Articuno", type_1: :ice, type_2: :flying, ability_1_id: 46) + Species.create(id: 145, name: "Zapdos", type_1: :electric, type_2: :flying, ability_1_id: 46) + Species.create(id: 146, name: "Moltres", type_1: :fire, type_2: :flying, ability_1_id: 46) + Species.create(id: 147, name: "Dratini", type_1: :dragon, ability_1_id: 61) + Species.create(id: 148, name: "Dragonair", type_1: :dragon, ability_1_id: 61) + Species.create(id: 149, name: "Dragonite", type_1: :dragon, type_2: :flying, ability_1_id: 39) + Species.create(id: 150, name: "Mewtwo", type_1: :psychic, ability_1_id: 46) + Species.create(id: 151, name: "Mew", type_1: :psychic, ability_1_id: 28) + Species.create(id: 152, name: "Chikorita", type_1: :grass, ability_1_id: 65) + Species.create(id: 153, name: "Bayleef", type_1: :grass, ability_1_id: 65) + Species.create(id: 154, name: "Meganium", type_1: :grass, ability_1_id: 65) + Species.create(id: 155, name: "Cyndaquil", type_1: :fire, ability_1_id: 66) + Species.create(id: 156, name: "Quilava", type_1: :fire, ability_1_id: 66) + Species.create(id: 157, name: "Typhlosion", type_1: :fire, ability_1_id: 66) + Species.create(id: 158, name: "Totodile", type_1: :water, ability_1_id: 67) + Species.create(id: 159, name: "Croconaw", type_1: :water, ability_1_id: 67) + Species.create(id: 160, name: "Feraligatr", type_1: :water, ability_1_id: 67) + Species.create(id: 161, name: "Sentret", type_1: :normal, ability_1_id: 50, ability_2_id: 51) + Species.create(id: 162, name: "Furret", type_1: :normal, ability_1_id: 50, ability_2_id: 51) + Species.create(id: 163, name: "Hoothoot", type_1: :normal, type_2: :flying, ability_1_id: 15, ability_2_id: 51) + Species.create(id: 164, name: "Noctowl", type_1: :normal, type_2: :flying, ability_1_id: 15, ability_2_id: 51) + Species.create(id: 165, name: "Ledyba", type_1: :bug, type_2: :flying, ability_1_id: 68, ability_2_id: 48) + Species.create(id: 166, name: "Ledian", type_1: :bug, type_2: :flying, ability_1_id: 68, ability_2_id: 48) + Species.create(id: 167, name: "Spinarak", type_1: :bug, type_2: :poison, ability_1_id: 68, ability_2_id: 15) + Species.create(id: 168, name: "Ariados", type_1: :bug, type_2: :poison, ability_1_id: 68, ability_2_id: 15) + Species.create(id: 169, name: "Crobat", type_1: :poison, type_2: :flying, ability_1_id: 39) + Species.create(id: 170, name: "Chinchou", type_1: :water, type_2: :electric, ability_1_id: 10, ability_2_id: 35) + Species.create(id: 171, name: "Lanturn", type_1: :water, type_2: :electric, ability_1_id: 10, ability_2_id: 35) + Species.create(id: 172, name: "Pichu", type_1: :electric, ability_1_id: 9) + Species.create(id: 173, name: "Cleffa", type_1: :normal, ability_1_id: 56, ability_2_id: 98) + Species.create(id: 174, name: "Igglybuff", type_1: :normal, ability_1_id: 56, ability_2_id: 172) + Species.create(id: 175, name: "Togepi", type_1: :normal, ability_1_id: 55, ability_2_id: 32) + Species.create(id: 176, name: "Togetic", type_1: :normal, type_2: :flying, ability_1_id: 55, ability_2_id: 32) + Species.create(id: 177, name: "Natu", type_1: :psychic, type_2: :flying, ability_1_id: 28, ability_2_id: 48) + Species.create(id: 178, name: "Xatu", type_1: :psychic, type_2: :flying, ability_1_id: 28, ability_2_id: 48) + Species.create(id: 179, name: "Mareep", type_1: :electric, ability_1_id: 9) + Species.create(id: 180, name: "Flaaffy", type_1: :electric, ability_1_id: 9) + Species.create(id: 181, name: "Ampharos", type_1: :electric, ability_1_id: 9) + Species.create(id: 182, name: "Bellossom", type_1: :grass, ability_1_id: 34) + Species.create(id: 183, name: "Marill", type_1: :water, ability_1_id: 47, ability_2_id: 37) + Species.create(id: 184, name: "Azumarill", type_1: :water, ability_1_id: 47, ability_2_id: 37) + Species.create(id: 185, name: "Sudowoodo", type_1: :rock, ability_1_id: 5, ability_2_id: 69) + Species.create(id: 186, name: "Politoed", type_1: :water, ability_1_id: 11, ability_2_id: 6) + Species.create(id: 187, name: "Hoppip", type_1: :grass, type_2: :flying, ability_1_id: 34, ability_2_id: 102) + Species.create(id: 188, name: "Skiploom", type_1: :grass, type_2: :flying, ability_1_id: 34, ability_2_id: 102) + Species.create(id: 189, name: "Jumpluff", type_1: :grass, type_2: :flying, ability_1_id: 34, ability_2_id: 102) + Species.create(id: 190, name: "Aipom", type_1: :normal, ability_1_id: 50, ability_2_id: 53) + Species.create(id: 191, name: "Sunkern", type_1: :grass, ability_1_id: 34, ability_2_id: 94) + Species.create(id: 192, name: "Sunflora", type_1: :grass, ability_1_id: 34, ability_2_id: 94) + Species.create(id: 193, name: "Yanma", type_1: :bug, type_2: :flying, ability_1_id: 3, ability_2_id: 14) + Species.create(id: 194, name: "Wooper", type_1: :water, type_2: :ground, ability_1_id: 6, ability_2_id: 11) + Species.create(id: 195, name: "Quagsire", type_1: :water, type_2: :ground, ability_1_id: 6, ability_2_id: 11) + Species.create(id: 196, name: "Espeon", type_1: :psychic, ability_1_id: 28) + Species.create(id: 197, name: "Umbreon", type_1: :dark, ability_1_id: 28) + Species.create(id: 198, name: "Murkrow", type_1: :dark, type_2: :flying, ability_1_id: 15, ability_2_id: 105) + Species.create(id: 199, name: "Slowking", type_1: :water, type_2: :psychic, ability_1_id: 12, ability_2_id: 20) + Species.create(id: 200, name: "Misdreavus", type_1: :ghost, ability_1_id: 26) + Species.create(id: 201, name: "Unown", type_1: :psychic, ability_1_id: 26) + Species.create(id: 202, name: "Wobbuffet", type_1: :psychic, ability_1_id: 23) + Species.create(id: 203, name: "Girafarig", type_1: :normal, type_2: :psychic, ability_1_id: 39, ability_2_id: 48) + Species.create(id: 204, name: "Pineco", type_1: :bug, ability_1_id: 5) + Species.create(id: 205, name: "Forretress", type_1: :bug, type_2: :steel, ability_1_id: 5) + Species.create(id: 206, name: "Dunsparce", type_1: :normal, ability_1_id: 32, ability_2_id: 50) + Species.create(id: 207, name: "Gligar", type_1: :ground, type_2: :flying, ability_1_id: 52, ability_2_id: 8) + Species.create(id: 208, name: "Steelix", type_1: :steel, type_2: :ground, ability_1_id: 69, ability_2_id: 5) + Species.create(id: 209, name: "Snubbull", type_1: :normal, ability_1_id: 22, ability_2_id: 50) + Species.create(id: 210, name: "Granbull", type_1: :normal, ability_1_id: 22, ability_2_id: 95) + Species.create(id: 211, name: "Qwilfish", type_1: :water, type_2: :poison, ability_1_id: 38, ability_2_id: 33) + Species.create(id: 212, name: "Scizor", type_1: :bug, type_2: :steel, ability_1_id: 68, ability_2_id: 101) + Species.create(id: 213, name: "Shuckle", type_1: :bug, type_2: :rock, ability_1_id: 5, ability_2_id: 82) + Species.create(id: 214, name: "Heracross", type_1: :bug, type_2: :fighting, ability_1_id: 68, ability_2_id: 62) + Species.create(id: 215, name: "Sneasel", type_1: :dark, type_2: :ice, ability_1_id: 39, ability_2_id: 51) + Species.create(id: 216, name: "Teddiursa", type_1: :normal, ability_1_id: 53, ability_2_id: 95) + Species.create(id: 217, name: "Ursaring", type_1: :normal, ability_1_id: 62, ability_2_id: 95) + Species.create(id: 218, name: "Slugma", type_1: :fire, ability_1_id: 40, ability_2_id: 49) + Species.create(id: 219, name: "Magcargo", type_1: :fire, type_2: :rock, ability_1_id: 40, ability_2_id: 49) + Species.create(id: 220, name: "Swinub", type_1: :ice, type_2: :ground, ability_1_id: 12, ability_2_id: 81) + Species.create(id: 221, name: "Piloswine", type_1: :ice, type_2: :ground, ability_1_id: 12, ability_2_id: 81) + Species.create(id: 222, name: "Corsola", type_1: :water, type_2: :rock, ability_1_id: 55, ability_2_id: 30) + Species.create(id: 223, name: "Remoraid", type_1: :water, ability_1_id: 55, ability_2_id: 97) + Species.create(id: 224, name: "Octillery", type_1: :water, ability_1_id: 21, ability_2_id: 97) + Species.create(id: 225, name: "Delibird", type_1: :ice, type_2: :flying, ability_1_id: 72, ability_2_id: 55) + Species.create(id: 226, name: "Mantine", type_1: :water, type_2: :flying, ability_1_id: 33, ability_2_id: 11) + Species.create(id: 227, name: "Skarmory", type_1: :steel, type_2: :flying, ability_1_id: 51, ability_2_id: 5) + Species.create(id: 228, name: "Houndour", type_1: :dark, type_2: :fire, ability_1_id: 48, ability_2_id: 18) + Species.create(id: 229, name: "Houndoom", type_1: :dark, type_2: :fire, ability_1_id: 48, ability_2_id: 18) + Species.create(id: 230, name: "Kingdra", type_1: :water, type_2: :dragon, ability_1_id: 33, ability_2_id: 97) + Species.create(id: 231, name: "Phanpy", type_1: :ground, ability_1_id: 53) + Species.create(id: 232, name: "Donphan", type_1: :ground, ability_1_id: 5) + Species.create(id: 233, name: "Porygon2", type_1: :normal, ability_1_id: 36, ability_2_id: 88) + Species.create(id: 234, name: "Stantler", type_1: :normal, ability_1_id: 22, ability_2_id: 119) + Species.create(id: 235, name: "Smeargle", type_1: :normal, ability_1_id: 20, ability_2_id: 101) + Species.create(id: 236, name: "Tyrogue", type_1: :fighting, ability_1_id: 62, ability_2_id: 80) + Species.create(id: 237, name: "Hitmontop", type_1: :fighting, ability_1_id: 22, ability_2_id: 101) + Species.create(id: 238, name: "Smoochum", type_1: :ice, type_2: :psychic, ability_1_id: 12, ability_2_id: 108) + Species.create(id: 239, name: "Elekid", type_1: :electric, ability_1_id: 9) + Species.create(id: 240, name: "Magby", type_1: :fire, ability_1_id: 49) + Species.create(id: 241, name: "Miltank", type_1: :normal, ability_1_id: 47, ability_2_id: 113) + Species.create(id: 242, name: "Blissey", type_1: :normal, ability_1_id: 30, ability_2_id: 32) + Species.create(id: 243, name: "Raikou", type_1: :electric, ability_1_id: 46) + Species.create(id: 244, name: "Entei", type_1: :fire, ability_1_id: 46) + Species.create(id: 245, name: "Suicune", type_1: :water, ability_1_id: 46) + Species.create(id: 246, name: "Larvitar", type_1: :rock, type_2: :ground, ability_1_id: 62) + Species.create(id: 247, name: "Pupitar", type_1: :rock, type_2: :ground, ability_1_id: 61) + Species.create(id: 248, name: "Tyranitar", type_1: :rock, type_2: :dark, ability_1_id: 45) + Species.create(id: 249, name: "Lugia", type_1: :psychic, type_2: :flying, ability_1_id: 46) + Species.create(id: 250, name: "Ho-Oh", type_1: :fire, type_2: :flying, ability_1_id: 46) + Species.create(id: 251, name: "Celebi", type_1: :psychic, type_2: :grass, ability_1_id: 30) + Species.create(id: 252, name: "Treecko", type_1: :grass, ability_1_id: 65) + Species.create(id: 253, name: "Grovyle", type_1: :grass, ability_1_id: 65) + Species.create(id: 254, name: "Sceptile", type_1: :grass, ability_1_id: 65) + Species.create(id: 255, name: "Torchic", type_1: :fire, ability_1_id: 66) + Species.create(id: 256, name: "Combusken", type_1: :fire, type_2: :fighting, ability_1_id: 66) + Species.create(id: 257, name: "Blaziken", type_1: :fire, type_2: :fighting, ability_1_id: 66) + Species.create(id: 258, name: "Mudkip", type_1: :water, ability_1_id: 67) + Species.create(id: 259, name: "Marshtomp", type_1: :water, type_2: :ground, ability_1_id: 67) + Species.create(id: 260, name: "Swampert", type_1: :water, type_2: :ground, ability_1_id: 67) + Species.create(id: 261, name: "Poochyena", type_1: :dark, ability_1_id: 50, ability_2_id: 95) + Species.create(id: 262, name: "Mightyena", type_1: :dark, ability_1_id: 22, ability_2_id: 95) + Species.create(id: 263, name: "Zigzagoon", type_1: :normal, ability_1_id: 53, ability_2_id: 82) + Species.create(id: 264, name: "Linoone", type_1: :normal, ability_1_id: 53, ability_2_id: 82) + Species.create(id: 265, name: "Wurmple", type_1: :bug, ability_1_id: 19) + Species.create(id: 266, name: "Silcoon", type_1: :bug, ability_1_id: 61) + Species.create(id: 267, name: "Beautifly", type_1: :bug, type_2: :flying, ability_1_id: 68) + Species.create(id: 268, name: "Cascoon", type_1: :bug, ability_1_id: 61) + Species.create(id: 269, name: "Dustox", type_1: :bug, type_2: :poison, ability_1_id: 19) + Species.create(id: 270, name: "Lotad", type_1: :water, type_2: :grass, ability_1_id: 33, ability_2_id: 44) + Species.create(id: 271, name: "Lombre", type_1: :water, type_2: :grass, ability_1_id: 33, ability_2_id: 44) + Species.create(id: 272, name: "Ludicolo", type_1: :water, type_2: :grass, ability_1_id: 33, ability_2_id: 44) + Species.create(id: 273, name: "Seedot", type_1: :grass, ability_1_id: 34, ability_2_id: 48) + Species.create(id: 274, name: "Nuzleaf", type_1: :grass, type_2: :dark, ability_1_id: 34, ability_2_id: 48) + Species.create(id: 275, name: "Shiftry", type_1: :grass, type_2: :dark, ability_1_id: 34, ability_2_id: 48) + Species.create(id: 276, name: "Taillow", type_1: :normal, type_2: :flying, ability_1_id: 62) + Species.create(id: 277, name: "Swellow", type_1: :normal, type_2: :flying, ability_1_id: 62) + Species.create(id: 278, name: "Wingull", type_1: :water, type_2: :flying, ability_1_id: 51, ability_2_id: 93) + Species.create(id: 279, name: "Pelipper", type_1: :water, type_2: :flying, ability_1_id: 51, ability_2_id: 2) + Species.create(id: 280, name: "Ralts", type_1: :psychic, ability_1_id: 28, ability_2_id: 36) + Species.create(id: 281, name: "Kirlia", type_1: :psychic, ability_1_id: 28, ability_2_id: 36) + Species.create(id: 282, name: "Gardevoir", type_1: :psychic, ability_1_id: 28, ability_2_id: 36) + Species.create(id: 283, name: "Surskit", type_1: :bug, type_2: :water, ability_1_id: 33) + Species.create(id: 284, name: "Masquerain", type_1: :bug, type_2: :flying, ability_1_id: 22) + Species.create(id: 285, name: "Shroomish", type_1: :grass, ability_1_id: 27, ability_2_id: 90) + Species.create(id: 286, name: "Breloom", type_1: :grass, type_2: :fighting, ability_1_id: 27, ability_2_id: 90) + Species.create(id: 287, name: "Slakoth", type_1: :normal, ability_1_id: 54) + Species.create(id: 288, name: "Vigoroth", type_1: :normal, ability_1_id: 72) + Species.create(id: 289, name: "Slaking", type_1: :normal, ability_1_id: 54) + Species.create(id: 290, name: "Nincada", type_1: :bug, type_2: :ground, ability_1_id: 14) + Species.create(id: 291, name: "Ninjask", type_1: :bug, type_2: :flying, ability_1_id: 3) + Species.create(id: 292, name: "Shedinja", type_1: :bug, type_2: :ghost, ability_1_id: 25) + Species.create(id: 293, name: "Whismur", type_1: :normal, ability_1_id: 43) + Species.create(id: 294, name: "Loudred", type_1: :normal, ability_1_id: 43) + Species.create(id: 295, name: "Exploud", type_1: :normal, ability_1_id: 43) + Species.create(id: 296, name: "Makuhita", type_1: :fighting, ability_1_id: 47, ability_2_id: 62) + Species.create(id: 297, name: "Hariyama", type_1: :fighting, ability_1_id: 47, ability_2_id: 62) + Species.create(id: 298, name: "Azurill", type_1: :normal, ability_1_id: 47, ability_2_id: 37) + Species.create(id: 299, name: "Nosepass", type_1: :rock, ability_1_id: 5, ability_2_id: 42) + Species.create(id: 300, name: "Skitty", type_1: :normal, ability_1_id: 56, ability_2_id: 96) + Species.create(id: 301, name: "Delcatty", type_1: :normal, ability_1_id: 56, ability_2_id: 96) + Species.create(id: 302, name: "Sableye", type_1: :dark, type_2: :ghost, ability_1_id: 51, ability_2_id: 100) + Species.create(id: 303, name: "Mawile", type_1: :steel, ability_1_id: 52, ability_2_id: 22) + Species.create(id: 304, name: "Aron", type_1: :steel, type_2: :rock, ability_1_id: 5, ability_2_id: 69) + Species.create(id: 305, name: "Lairon", type_1: :steel, type_2: :rock, ability_1_id: 5, ability_2_id: 69) + Species.create(id: 306, name: "Aggron", type_1: :steel, type_2: :rock, ability_1_id: 5, ability_2_id: 69) + Species.create(id: 307, name: "Meditite", type_1: :fighting, type_2: :psychic, ability_1_id: 74) + Species.create(id: 308, name: "Medicham", type_1: :fighting, type_2: :psychic, ability_1_id: 74) + Species.create(id: 309, name: "Electrike", type_1: :electric, ability_1_id: 9, ability_2_id: 31) + Species.create(id: 310, name: "Manectric", type_1: :electric, ability_1_id: 9, ability_2_id: 31) + Species.create(id: 311, name: "Plusle", type_1: :electric, ability_1_id: 57) + Species.create(id: 312, name: "Minun", type_1: :electric, ability_1_id: 58) + Species.create(id: 313, name: "Volbeat", type_1: :bug, ability_1_id: 35, ability_2_id: 68) + Species.create(id: 314, name: "Illumise", type_1: :bug, ability_1_id: 12, ability_2_id: 110) + Species.create(id: 315, name: "Roselia", type_1: :grass, type_2: :poison, ability_1_id: 30, ability_2_id: 38) + Species.create(id: 316, name: "Gulpin", type_1: :poison, ability_1_id: 64, ability_2_id: 60) + Species.create(id: 317, name: "Swalot", type_1: :poison, ability_1_id: 64, ability_2_id: 60) + Species.create(id: 318, name: "Carvanha", type_1: :water, type_2: :dark, ability_1_id: 24) + Species.create(id: 319, name: "Sharpedo", type_1: :water, type_2: :dark, ability_1_id: 24) + Species.create(id: 320, name: "Wailmer", type_1: :water, ability_1_id: 41, ability_2_id: 12) + Species.create(id: 321, name: "Wailord", type_1: :water, ability_1_id: 41, ability_2_id: 12) + Species.create(id: 322, name: "Numel", type_1: :fire, type_2: :ground, ability_1_id: 12, ability_2_id: 86) + Species.create(id: 323, name: "Camerupt", type_1: :fire, type_2: :ground, ability_1_id: 40, ability_2_id: 116) + Species.create(id: 324, name: "Torkoal", type_1: :fire, ability_1_id: 73, ability_2_id: 70) + Species.create(id: 325, name: "Spoink", type_1: :psychic, ability_1_id: 47, ability_2_id: 20) + Species.create(id: 326, name: "Grumpig", type_1: :psychic, ability_1_id: 47, ability_2_id: 20) + Species.create(id: 327, name: "Spinda", type_1: :normal, ability_1_id: 20, ability_2_id: 77) + Species.create(id: 328, name: "Trapinch", type_1: :ground, ability_1_id: 52, ability_2_id: 71) + Species.create(id: 329, name: "Vibrava", type_1: :ground, type_2: :dragon, ability_1_id: 26) + Species.create(id: 330, name: "Flygon", type_1: :ground, type_2: :dragon, ability_1_id: 26) + Species.create(id: 331, name: "Cacnea", type_1: :grass, ability_1_id: 8) + Species.create(id: 332, name: "Cacturne", type_1: :grass, type_2: :dark, ability_1_id: 8) + Species.create(id: 333, name: "Swablu", type_1: :normal, type_2: :flying, ability_1_id: 30) + Species.create(id: 334, name: "Altaria", type_1: :dragon, type_2: :flying, ability_1_id: 30) + Species.create(id: 335, name: "Zangoose", type_1: :normal, ability_1_id: 17) + Species.create(id: 336, name: "Seviper", type_1: :poison, ability_1_id: 61) + Species.create(id: 337, name: "Lunatone", type_1: :rock, type_2: :psychic, ability_1_id: 26) + Species.create(id: 338, name: "Solrock", type_1: :rock, type_2: :psychic, ability_1_id: 26) + Species.create(id: 339, name: "Barboach", type_1: :water, type_2: :ground, ability_1_id: 12, ability_2_id: 107) + Species.create(id: 340, name: "Whiscash", type_1: :water, type_2: :ground, ability_1_id: 12, ability_2_id: 107) + Species.create(id: 341, name: "Corphish", type_1: :water, ability_1_id: 52, ability_2_id: 75) + Species.create(id: 342, name: "Crawdaunt", type_1: :water, type_2: :dark, ability_1_id: 52, ability_2_id: 75) + Species.create(id: 343, name: "Baltoy", type_1: :ground, type_2: :psychic, ability_1_id: 26) + Species.create(id: 344, name: "Claydol", type_1: :ground, type_2: :psychic, ability_1_id: 26) + Species.create(id: 345, name: "Lileep", type_1: :rock, type_2: :grass, ability_1_id: 21) + Species.create(id: 346, name: "Cradily", type_1: :rock, type_2: :grass, ability_1_id: 21) + Species.create(id: 347, name: "Anorith", type_1: :rock, type_2: :bug, ability_1_id: 4) + Species.create(id: 348, name: "Armaldo", type_1: :rock, type_2: :bug, ability_1_id: 4) + Species.create(id: 349, name: "Feebas", type_1: :water, ability_1_id: 33, ability_2_id: 12) + Species.create(id: 350, name: "Milotic", type_1: :water, ability_1_id: 63, ability_2_id: 172) + Species.create(id: 351, name: "Castform", type_1: :normal, ability_1_id: 59) + Species.create(id: 352, name: "Kecleon", type_1: :normal, ability_1_id: 16) + Species.create(id: 353, name: "Shuppet", type_1: :ghost, ability_1_id: 15, ability_2_id: 119) + Species.create(id: 354, name: "Banette", type_1: :ghost, ability_1_id: 15, ability_2_id: 119) + Species.create(id: 355, name: "Duskull", type_1: :ghost, ability_1_id: 26) + Species.create(id: 356, name: "Dusclops", type_1: :ghost, ability_1_id: 46) + Species.create(id: 357, name: "Tropius", type_1: :grass, type_2: :flying, ability_1_id: 34, ability_2_id: 94) + Species.create(id: 358, name: "Chimecho", type_1: :psychic, ability_1_id: 26) + Species.create(id: 359, name: "Absol", type_1: :dark, ability_1_id: 46, ability_2_id: 105) + Species.create(id: 360, name: "Wynaut", type_1: :psychic, ability_1_id: 23) + Species.create(id: 361, name: "Snorunt", type_1: :ice, ability_1_id: 39, ability_2_id: 115) + Species.create(id: 362, name: "Glalie", type_1: :ice, ability_1_id: 39, ability_2_id: 115) + Species.create(id: 363, name: "Spheal", type_1: :ice, type_2: :water, ability_1_id: 47, ability_2_id: 115) + Species.create(id: 364, name: "Sealeo", type_1: :ice, type_2: :water, ability_1_id: 47, ability_2_id: 115) + Species.create(id: 365, name: "Walrein", type_1: :ice, type_2: :water, ability_1_id: 47, ability_2_id: 115) + Species.create(id: 366, name: "Clamperl", type_1: :water, ability_1_id: 75) + Species.create(id: 367, name: "Huntail", type_1: :water, ability_1_id: 33) + Species.create(id: 368, name: "Gorebyss", type_1: :water, ability_1_id: 33) + Species.create(id: 369, name: "Relicanth", type_1: :water, type_2: :rock, ability_1_id: 33, ability_2_id: 69) + Species.create(id: 370, name: "Luvdisc", type_1: :water, ability_1_id: 33) + Species.create(id: 371, name: "Bagon", type_1: :dragon, ability_1_id: 69) + Species.create(id: 372, name: "Shelgon", type_1: :dragon, ability_1_id: 69) + Species.create(id: 373, name: "Salamence", type_1: :dragon, type_2: :flying, ability_1_id: 22) + Species.create(id: 374, name: "Beldum", type_1: :steel, type_2: :psychic, ability_1_id: 29) + Species.create(id: 375, name: "Metang", type_1: :steel, type_2: :psychic, ability_1_id: 29) + Species.create(id: 376, name: "Metagross", type_1: :steel, type_2: :psychic, ability_1_id: 29) + Species.create(id: 377, name: "Regirock", type_1: :rock, ability_1_id: 29) + Species.create(id: 378, name: "Regice", type_1: :ice, ability_1_id: 29) + Species.create(id: 379, name: "Registeel", type_1: :steel, ability_1_id: 29) + Species.create(id: 380, name: "Latias", type_1: :dragon, type_2: :psychic, ability_1_id: 26) + Species.create(id: 381, name: "Latios", type_1: :dragon, type_2: :psychic, ability_1_id: 26) + Species.create(id: 382, name: "Kyogre", type_1: :water, ability_1_id: 2) + Species.create(id: 383, name: "Groudon", type_1: :ground, ability_1_id: 70) + Species.create(id: 384, name: "Rayquaza", type_1: :dragon, type_2: :flying, ability_1_id: 76) + Species.create(id: 385, name: "Jirachi", type_1: :steel, type_2: :psychic, ability_1_id: 32) + Species.create(id: 386, name: "Deoxys", type_1: :psychic, ability_1_id: 46) Move.create(id: 354, name: "Psycho Boost", pp: 5, move_type: :psychic, rs_description: "Allows a full-power attack, but sharply lowers SP. ATK.", diff --git a/test/dummy/db/schema.rb b/test/dummy/db/schema.rb index 5ae8e1d..a527d06 100644 --- a/test/dummy/db/schema.rb +++ b/test/dummy/db/schema.rb @@ -10,7 +10,15 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20171004203404) do +ActiveRecord::Schema.define(version: 20171011015648) do + + create_table "pokeviewer_abilities", force: :cascade do |t| + t.string "name", limit: 191, null: false + t.string "description", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["name"], name: "index_pokeviewer_abilities_on_name", unique: true + end create_table "pokeviewer_gift_ribbons", force: :cascade do |t| t.string "description", null: false @@ -133,6 +141,10 @@ ActiveRecord::Schema.define(version: 20171004203404) do t.string "name", limit: 191, null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.string "type_1", null: false + t.string "type_2" + t.integer "ability_1_id", null: false + t.integer "ability_2_id" t.index ["name"], name: "index_pokeviewer_species_on_name", unique: true end -- cgit 1.4.1