1 class AddMoreMovies < ActiveRecord::Migration
3 {:title => 'Aladdin', :rating => 'G', :release_date => '25-Nov-1992'},
4 {:title => 'The Terminator', :rating => 'R', :release_date => '26-Oct-1984'},
5 {:title => 'When Harry Met Sally', :rating => 'R', :release_date => '21-Jul-1989'},
6 {:title => 'The Help', :rating => 'PG-13', :release_date => '10-Aug-2011'},
7 {:title => 'Chocolat', :rating => 'PG-13', :release_date => '5-Jan-2001'},
8 {:title => 'Amelie', :rating => 'R', :release_date => '25-Apr-2001'},
9 {:title => '2001: A Space Odyssey', :rating => 'G', :release_date => '6-Apr-1968'},
10 {:title => 'The Incredibles', :rating => 'PG', :release_date => '5-Nov-2004'},
11 {:title => 'Raiders of the Lost Ark', :rating => 'PG', :release_date => '12-Jun-1981'},
12 {:title => 'Chicken Run', :rating => 'G', :release_date => '21-Jun-2000'},
15 MORE_MOVIES.each do |movie|
21 MORE_MOVIES.each do |movie|
22 Movie.find_by_title_and_rating(movie[:title], movie[:rating]).destroy