X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fd6f00b069af5a7b87227ea4c3401dc461d7311a..663f3e48e354bd0fce64a2111be0139a6a335839:/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..50e7ec8be 100644 --- a/db/migrate/021_move_to_innodb.rb +++ b/db/migrate/021_move_to_innodb.rb @@ -1,3 +1,5 @@ +require 'lib/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