Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def data
- i = 1000
- while i > 0
- @book = Book.new
- @book.title = "Book #{i}"
- @book.author = "Author #{i}"
- @book.description = "The description for book #{i}"
- @book.save
- i = i - 1
- end
- render :text => "Created data!"
- end
Add Comment
Please, Sign In to add comment