Skip to content

Instantly share code, notes, and snippets.

@armandofox
Created February 16, 2016 01:15
Show Gist options
  • Save armandofox/056aae02801cf42a0199 to your computer and use it in GitHub Desktop.
Save armandofox/056aae02801cf42a0199 to your computer and use it in GitHub Desktop.
seeds.rb
# 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