Created
February 16, 2016 01:15
-
-
Save armandofox/056aae02801cf42a0199 to your computer and use it in GitHub Desktop.
seeds.rb
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
# Seed the RottenPotatoes DB with some movies. | |
more_movies = [ | |
{:title => 'Aladdin', :rating => 'G', | |
:release_date => '25-Nov-1992'}, | |
{:title => 'When Harry Met Sally', :rating => 'R', | |
:release_date => '21-Jul-1989'}, | |
{:title => 'The Help', :rating => 'PG-13', | |
:release_date => '10-Aug-2011'}, | |
{:title => 'Raiders of the Lost Ark', :rating => 'PG', | |
:release_date => '12-Jun-1981'} | |
] | |
more_movies.each do |movie| | |
Movie.create!(movie) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment