Created
May 9, 2013 13:19
-
-
Save mcelaney/5547395 to your computer and use it in GitHub Desktop.
Seed data for a fast example Rails app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shelf1 = Shelf.create!(name: "Top Shelf") | |
shelf2 = Shelf.create!(name: "Bottom Shelf") | |
author1 = Author.create!(first_name: "James", last_name:"Patterson") | |
author1.books.create!(title: "12th of Never (Women's Murder Club", shelf: shelf1) | |
author1.books.create!(title: "Alex Cross, Run", shelf: shelf2) | |
author1.books.create!(title: "Middle School: Get Me out of Here!", shelf: shelf2) | |
author1.books.create!(title: "Middle School: My Brother Is a Big", shelf: shelf1) | |
author1.books.create!(title: "11th Hour (Women's Murder Club)", shelf: shelf1) | |
author2 = Author.create!(first_name: "Nora", last_name:"Roberts") | |
author2.books.create!(title: "Whiskey Beach", shelf: shelf1) | |
author2.books.create!(title: "Island of Flowers", shelf: shelf2) | |
author2.books.create!(title: "The Witness", shelf: shelf2) | |
author2.books.create!(title: "Song of the West", shelf: shelf2) | |
author2.books.create!(title: "The Perfect Hope: Book Three", shelf: shelf2) | |
author3 = Author.create!(first_name: "Dan", last_name:"Brown") | |
author3.books.create!(title: "Inferno: A Novel (Robert Langdon)", shelf: shelf1) | |
author3.books.create!(title: "The Da Vinci Code", shelf: shelf2) | |
author3.books.create!(title: "The Lost Symbol (Robert Langdon)", shelf: shelf1) | |
author3.books.create!(title: "Angels & Demons", shelf: shelf1) | |
author3.books.create!(title: "Deception Point", shelf: shelf1) | |
author4 = Author.create!(first_name: "Suzanne", last_name:"Collins") | |
author4.books.create!(title: "Mockingjay", shelf: shelf1) | |
author4.books.create!(title: "Catching Fire", shelf: shelf1) | |
author4.books.create!(title: "The Hunger Games", shelf: shelf1) | |
author4.books.create!(title: "The Hunger Games Trilogy", shelf: shelf1) | |
author4.books.create!(title: "The Underland Chronicles #1", shelf: shelf1) | |
author5 = Author.create!(first_name: "Lois", last_name:"Leveen") | |
author5.books.create!(title: "The Secrets of Mary Bowser (P.S.)", shelf: shelf2) | |
author5.books.create!(title: "Helen Bryan", shelf: shelf2) | |
author5.books.create!(title: "The Sisterhood", shelf: shelf2) | |
author5.books.create!(title: "War Brides", shelf: shelf2) | |
author5.books.create!(title: "Martha Washington", shelf: shelf2) | |
author5.books.create!(title: "Planning Applications and Appeals", shelf: shelf2) | |
author6 = Author.create!(first_name: "Orson Scott", last_name:"Card") | |
author6.books.create!(title: "Ender's Game (The Ender Quintet)", shelf: shelf1) | |
author6.books.create!(title: "Speaker for the Dead", shelf: shelf2) | |
author6.books.create!(title: "The Lost Gate: Mithermages, Book 1", shelf: shelf2) | |
author6.books.create!(title: "Xenocide", shelf: shelf1) | |
author6.books.create!(title: "Children of the Mind", shelf: shelf2) | |
author7 = Author.create!(first_name: "Stephen", last_name:"King") | |
author7.books.create!(title: "Under the Dome: A Novel", shelf: shelf1) | |
author7.books.create!(title: "11/22/63", shelf: shelf2) | |
author7.books.create!(title: "Joyland", shelf: shelf2) | |
author7.books.create!(title: "Mile 81", shelf: shelf1) | |
author7.books.create!(title: "Doctor Sleep: A Novel", shelf: shelf1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment