From: Tom Hughes Date: Wed, 4 Jan 2012 21:27:38 +0000 (+0000) Subject: Remove compatibility code for old versions of rails X-Git-Tag: live~5885 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/fcaeaf8c44456657043686d01f2913d600ef13ce Remove compatibility code for old versions of rails --- 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