pinrails/db/seeds.rb

28 lines
832 B
Ruby

# 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 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)
machines = [
["Avengers", "Pro"],
["Deadpool", "Pro"],
["Family Guy", "Pro"],
["Guardians of the Galaxy", "Pro"],
["Jurassic Park", "Pro"],
["Monster Bash", "Pro"],
["Rick & Morty", "Pro"],
["Simpsons", "Pro"],
["Star Trek", "Pro"],
["Star Wars", "Pro"],
["Teenage Mutant Ninja Turtles", "Pro"],
["The Mandalorian", "Pro"],
["Walking Dead", "Pro"]
]
machines.each do |name, edition|
Machine.create(name: name, edition: edition)
end