Skip to content

Commit

Permalink
Merge pull request #48838 from jhbabon/fix-schema-version-check
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Jul 30, 2023
2 parents 3569523 + c4c2884 commit 828563d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -130,7 +130,7 @@ def load_cache(connection)

if self.class.check_schema_cache_dump_version
begin
current_version = connection.migration_context.current_version
current_version = connection.schema_version

if new_cache.version(connection) != current_version
warn "Ignoring #{@cache_path} because it has expired. The current schema version is #{current_version}, but the one in the schema cache file is #{new_cache.schema_version}."
Expand Down Expand Up @@ -375,7 +375,7 @@ def database_version(connection) # :nodoc:
end

def version(connection)
@version ||= connection.migration_context.current_version
@version ||= connection.schema_version
end

def schema_version
Expand Down

0 comments on commit 828563d

Please sign in to comment.