]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/022_key_constraints.rb
Convert edit menus to bootstrap dropdown
[rails.git] / db / migrate / 022_key_constraints.rb
index 40f98be02b9eb3dd61cc0538612fff288d353492..f94c965bb087dc8501378cc2efb92acb47649865 100644 (file)
@@ -1,3 +1,5 @@
+require 'migrate'
+
 class KeyConstraints < ActiveRecord::Migration
   def self.up
     # Primary keys
 class KeyConstraints < ActiveRecord::Migration
   def self.up
     # Primary keys
@@ -45,6 +47,6 @@ class KeyConstraints < ActiveRecord::Migration
   end
 
   def self.down
   end
 
   def self.down
-    raise IrreversibleMigration.new
+    raise ActiveRecord::IrreversibleMigration
   end
 end
   end
 end