From fcaeaf8c44456657043686d01f2913d600ef13ce Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 4 Jan 2012 21:27:38 +0000 Subject: [PATCH] Remove compatibility code for old versions of rails --- lib/migrate.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 -- 2.39.5