]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/029_add_user_foreign_keys.rb
Merge remote-tracking branch 'upstream/master' into routing
[rails.git] / db / migrate / 029_add_user_foreign_keys.rb
index d11f81cbb5f4a265f95c0aacc8f784a424a115a1..cb0d9e1dddc5fd0b4cb870f370e8b2942f61b6f0 100644 (file)
@@ -1,3 +1,5 @@
+require 'migrate'
+
 class AddUserForeignKeys < ActiveRecord::Migration
   def self.up
     add_foreign_key :changesets, [:user_id], :users, [:id]
 class AddUserForeignKeys < ActiveRecord::Migration
   def self.up
     add_foreign_key :changesets, [:user_id], :users, [:id]
@@ -13,6 +15,6 @@ class AddUserForeignKeys < ActiveRecord::Migration
   end
 
   def self.down
   end
 
   def self.down
-    raise IrreversibleMigration.new
+    raise ActiveRecord::IrreversibleMigration
   end
 end
   end
 end