X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c8ee1351049ef1bb4d7b50d071b2a96154266d1d..b83c5b4b502debe8b211e584ee1c1d480250ee34:/db/migrate/021_move_to_innodb.rb diff --git a/db/migrate/021_move_to_innodb.rb b/db/migrate/021_move_to_innodb.rb index da0488ca5..f9110cca6 100644 --- a/db/migrate/021_move_to_innodb.rb +++ b/db/migrate/021_move_to_innodb.rb @@ -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