# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup). # # Examples: # # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) # Character.create(name: 'Luke', movie: movies.first) %w[Normal Fire Water Grass Electric Ice Fighting Poison Ground Flying Psychic Bug Rock Ghost Dark Dragon Steel Fairy].each { |name| PtuType.find_or_create_by(name: name) } ["Static", "At-Will", "EOT", "Scene", "Scene x2", "Scene x3", "Daily"].each do |name| PtuFrequency.find_or_create_by(name: name) end %w[Standard Shift Swift Free].each { |name| PtuActionType.find_or_create_by(name: name) } [%w[Cuddly hp atk], %w[Distracted hp def], %w[Proud hp spatk], %w[Decisive hp spdef], %w[Patient hp speed], %w[Desperate atk hp], %w[Lonely atk def], %w[Adamant atk spatk], %w[Naughty atk spdef], %w[Brave atk speed], %w[Stark def hp], %w[Bold def atk], %w[Impish def spatk], %w[Lax def spdef], %w[Relaxed def speed], %w[Curious spatk hp], %w[Modest spatk atk], %w[Mild spatk def], %w[Rash spatk spdef], %w[Quiet spatk speed], %w[Dreamy spdef hp], %w[Calm spdef atk], %w[Gentle spdef def], %w[Careful spdef spatk], %w[Sassy spdef speed], %w[Skittish speed hp], %w[Timid speed atk], %w[Hasty speed def], %w[Jolly speed spatk], %w[Naive speed spdef], %w[Composed hp hp], %w[Hardy atk atk], %w[Docile def def], %w[Bashful spatk spatk], %w[Quirky spdef spdef], %w[Serious speed speed]].each { |n| PtuNature.find_or_create_by(name: n[0], raises: n[1], lowers: n[2]) }