Skip to content

Commit

Permalink
Revert changes for metadata method
Browse files Browse the repository at this point in the history
  • Loading branch information
VladislavSokov committed Jul 9, 2024
1 parent af67231 commit bf05208
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/actual_db_schema/patches/migration_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ def migrate(migration)
migrator.migrate
end

def metadata
@metadata ||= ActualDbSchema::Store.instance.read
end

def branch_for(version)
metadata.fetch(version, {})[:branch] || "unknown"
end

def metadata
@metadata ||= ActualDbSchema::Store.instance.read
end
end
end
end

0 comments on commit bf05208

Please sign in to comment.