From f34e0c4a207ddb7b2f25f43f68e0efad881cfbea Mon Sep 17 00:00:00 2001 From: kayvan Date: Sun, 9 Feb 2014 11:00:45 -0800 Subject: adding missed change --- activerecord/lib/active_record/migration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index b510e78460..b6b02322d7 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -832,7 +832,7 @@ module ActiveRecord def current_version(connection = Base.connection) sm_table = schema_migrations_table_name - if Base.connection.table_exists?(sm_table) + if connection.table_exists?(sm_table) get_all_versions.max || 0 else 0 -- cgit v1.2.3