Permalink
Browse files

adding missed change

  • Loading branch information...
1 parent 2862cd8 commit f34e0c4a207ddb7b2f25f43f68e0efad881cfbea @kayvannj kayvannj committed with tenderlove Feb 9, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/migration.rb
@@ -832,7 +832,7 @@ def get_all_versions
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

0 comments on commit f34e0c4

Please sign in to comment.