]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/030_add_foreign_keys.rb
Merge branch 'master' into notes
[rails.git] / db / migrate / 030_add_foreign_keys.rb
index 183aa30dba7ce3e66389a3f8abf210e2641151a8..e3dc7e82ddd566b974b01e7e6915b4562cb5a302 100644 (file)
@@ -1,3 +1,5 @@
+require 'migrate'
+
 class AddForeignKeys < ActiveRecord::Migration
   def self.up
     add_foreign_key :changeset_tags, [:id], :changesets
@@ -7,6 +9,6 @@ class AddForeignKeys < ActiveRecord::Migration
   end
 
   def self.down
-    raise IrreversibleMigration.new
+    raise ActiveRecord::IrreversibleMigration
   end
 end