From 6e1be9d58585f900ebaa78b62e2cb8f1f3cf1bb3 Mon Sep 17 00:00:00 2001 From: Sam Joseph Date: Fri, 15 Mar 2019 15:56:40 +0000 Subject: [PATCH] remove the offensive migration, fixes #127 --- .../migrate/20120130161449_add_more_movies.rb | 25 ------------------- 1 file changed, 25 deletions(-) delete mode 100644 hw4_grader_stuff/hw4_rottenpotatoes/db/migrate/20120130161449_add_more_movies.rb diff --git a/hw4_grader_stuff/hw4_rottenpotatoes/db/migrate/20120130161449_add_more_movies.rb b/hw4_grader_stuff/hw4_rottenpotatoes/db/migrate/20120130161449_add_more_movies.rb deleted file mode 100644 index c1fdac9a..00000000 --- a/hw4_grader_stuff/hw4_rottenpotatoes/db/migrate/20120130161449_add_more_movies.rb +++ /dev/null @@ -1,25 +0,0 @@ -class AddMoreMovies < ActiveRecord::Migration - MORE_MOVIES = [ - {:title => 'Aladdin', :rating => 'G', :release_date => '25-Nov-1992'}, - {:title => 'The Terminator', :rating => 'R', :release_date => '26-Oct-1984'}, - {:title => 'When Harry Met Sally', :rating => 'R', :release_date => '21-Jul-1989'}, - {:title => 'The Help', :rating => 'PG-13', :release_date => '10-Aug-2011'}, - {:title => 'Chocolat', :rating => 'PG-13', :release_date => '5-Jan-2001'}, - {:title => 'Amelie', :rating => 'R', :release_date => '25-Apr-2001'}, - {:title => '2001: A Space Odyssey', :rating => 'G', :release_date => '6-Apr-1968'}, - {:title => 'The Incredibles', :rating => 'PG', :release_date => '5-Nov-2004'}, - {:title => 'Raiders of the Lost Ark', :rating => 'PG', :release_date => '12-Jun-1981'}, - {:title => 'Chicken Run', :rating => 'G', :release_date => '21-Jun-2000'}, - ] - def up - MORE_MOVIES.each do |movie| - Movie.create!(movie) - end - end - - def down - MORE_MOVIES.each do |movie| - Movie.find_by_title_and_rating(movie[:title], movie[:rating]).destroy - end - end -end