]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/023_add_changesets.rb
Fix search
[rails.git] / db / migrate / 023_add_changesets.rb
index e0cf3904a50d8ea98f79e40d1e20f5f8707336ae..5bee215122e23f21c415a77ad8471821d0a915c1 100644 (file)
@@ -1,3 +1,5 @@
+require 'migrate'
+
 class AddChangesets < ActiveRecord::Migration
   @@conv_user_tables = ['current_nodes',
   'current_relations', 'current_ways', 'nodes', 'relations', 'ways' ]
@@ -39,7 +41,7 @@ class AddChangesets < ActiveRecord::Migration
 
   def self.down
     # It's not easy to generate the user ids from the changesets
-    raise IrreversibleMigration.new
+    raise ActiveRecord::IrreversibleMigration
     #drop_table "changesets"
     #drop_table "changeset_tags"
   end