]> git.openstreetmap.org Git - rails.git/commitdiff
Remove compatibility code for old versions of rails
authorTom Hughes <tom@compton.nu>
Wed, 4 Jan 2012 21:27:38 +0000 (21:27 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 4 Jan 2012 22:25:53 +0000 (22:25 +0000)
lib/migrate.rb

index b3cffd870fe25fe9ddf7d4aa0924dd52d1b1f5d9..3d9970d8c35ff10195a5e0ca963969f0f772977c 100644 (file)
@@ -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