X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3c4dec8ce99eec1a412bbe525a3dd4bc9021366f..fcaeaf8c44456657043686d01f2913d600ef13ce:/lib/migrate.rb diff --git a/lib/migrate.rb b/lib/migrate.rb index b3cffd870..3d9970d8c 100644 --- a/lib/migrate.rb +++ b/lib/migrate.rb @@ -43,9 +43,7 @@ module ActiveRecord end class MysqlAdapter - if MysqlAdapter.public_instance_methods(false).include?('native_database_types') - alias_method :old_native_database_types, :native_database_types - end + alias_method :old_native_database_types, :native_database_types def native_database_types types = old_native_database_types @@ -123,9 +121,7 @@ module ActiveRecord end class PostgreSQLAdapter - if PostgreSQLAdapter.public_instance_methods(false).include?('native_database_types') - alias_method :old_native_database_types, :native_database_types - end + alias_method :old_native_database_types, :native_database_types def native_database_types types = old_native_database_types