]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/030_add_foreign_keys.rb
Fix migration to work with mass assignment protection
[rails.git] / db / migrate / 030_add_foreign_keys.rb
index eba44cfad23a11ebdf340b57df1451f006a77a61..e3dc7e82ddd566b974b01e7e6915b4562cb5a302 100644 (file)
@@ -1,4 +1,4 @@
-require 'lib/migrate'
+require 'migrate'
 
 class AddForeignKeys < ActiveRecord::Migration
   def self.up
@@ -9,6 +9,6 @@ class AddForeignKeys < ActiveRecord::Migration
   end
 
   def self.down
-    raise IrreversibleMigration.new
+    raise ActiveRecord::IrreversibleMigration
   end
 end