]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/019_move_to_innodb.rb
Move db engine changing into db adaptor monkeypatch
[rails.git] / db / migrate / 019_move_to_innodb.rb
index d17da8fd549649eafdb09e019d779ca986643967..2e9f4adaa68dcd3e72ea49f287289bb87b432124 100644 (file)
@@ -14,7 +14,7 @@ class MoveToInnodb < ActiveRecord::Migration
     }
 
     @@conv_tables.each { |tbl|
-      execute "ALTER TABLE #{tbl} ENGINE = InnoDB"
+      change_engine (tbl, "InnoDB")
     }
 
     @@ver_tbl.each { |tbl|