Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (14 sloc) 2.28 KB
# 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 rake db:seed (or created alongside the db with db:setup).
#
Book.create([
{ title: "Sapiens: A Brief History of Humankind", author: "Yuval Noah Harari", price: 16.0, published_at: DateTime.new(2015, 2, 12), image_url: "http://ecx.images-amazon.com/images/I/415tYy%2BYfEL._AA160_.jpg" },
{ title: "Humans of New York", author: "Brandon Stanton", price: 22.0, published_at: DateTime.new(2013, 5, 12), image_url: "http://ecx.images-amazon.com/images/I/61zFR-dbLfL._AA160_.jpg" },
{ title: "Capital in the Twenty-First Century", author: "Thomas Piketty and Arthur Goldhammer", price: 11.0, published_at: DateTime.new(2015, 5, 12), image_url: "http://ecx.images-amazon.com/images/I/41FDimPnPEL._AA160_.jpg" },
{ title: "The Boys in the Boat", author: "Daniel James Brown", price: 26.0, published_at: DateTime.new(2015, 5, 12), image_url: "http://ecx.images-amazon.com/images/I/51bbeZOdp5L._AA160_.jpg" },
{ title: "Red Notice: A True Story of High Finance, Murder, and One Man's Fight for Justice", author: "Bill Browder", price: 16.0, published_at: DateTime.new(2015, 5, 12), image_url: "http://ecx.images-amazon.com/images/I/510UWROQjSL._AA160_.jpg" },
{ title: "The Innovators: How a Group of Hackers, Geniuses, and Geeks Created the Digital Revolution", author: "Walter Isaacson", price: 16.0, published_at: DateTime.new(2015, 5, 12), image_url: "http://ecx.images-amazon.com/images/I/519KsxAU05L._AA160_.jpg" },
{ title: "The Half Has Never Been Told: Slavery and the Making of American Capitalism", author: "Edward E. Baptist", price: 16.0, published_at: DateTime.new(2014, 5, 12), image_url: "http://ecx.images-amazon.com/images/I/51RGjjDctHL._AA160_.jpg" },
{ title: "Deep Down Dark: The Untold Stories of 33 Men Buried in a Chilean Mine, and the Miracle That Set Them Free", author: "Héctor Tobar", price: 36.0, published_at: DateTime.new(2014, 10, 12), image_url: "http://ecx.images-amazon.com/images/I/51u9DXPdbkL._AA160_.jpg" },
{ title: "Undeniable: Evolution and the Science of Creation", author: "Bill Nye and Corey S. Powell", price: 16.0, published_at: DateTime.new(2014, 11, 12), image_url: "http://ecx.images-amazon.com/images/I/51jIthhp2HL._AA160_.jpg" }
])