]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/021_move_to_innodb.rb
Standardize form width
[rails.git] / db / migrate / 021_move_to_innodb.rb
index da0488ca5f7a3d6bb40f6ccc7717ceb34487096e..f9110cca67e676c0613f96f1915577604115459a 100644 (file)
@@ -1,3 +1,5 @@
+require 'migrate'
+
 class MoveToInnodb < ActiveRecord::Migration
   @@conv_tables = ['nodes', 'ways', 'way_tags', 'way_nodes',
     'current_way_tags', 'relation_members',
@@ -14,7 +16,7 @@ class MoveToInnodb < ActiveRecord::Migration
     }
 
     @@conv_tables.each { |tbl|
-      change_engine (tbl, "InnoDB")
+      change_engine tbl, "InnoDB"
     }
 
     @@ver_tbl.each { |tbl|
@@ -40,6 +42,6 @@ class MoveToInnodb < ActiveRecord::Migration
   end
 
   def self.down
-    raise IrreversibleMigration.new
+    raise ActiveRecord::IrreversibleMigration
   end
 end