From bf05208179b7ad60080fea165ec9e77c3d9c1387 Mon Sep 17 00:00:00 2001 From: Vladislav Sokov Date: Tue, 9 Jul 2024 11:46:27 +0300 Subject: [PATCH] Revert changes for metadata method --- lib/actual_db_schema/patches/migration_context.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/actual_db_schema/patches/migration_context.rb b/lib/actual_db_schema/patches/migration_context.rb index 7d93e8a..aa8b30e 100644 --- a/lib/actual_db_schema/patches/migration_context.rb +++ b/lib/actual_db_schema/patches/migration_context.rb @@ -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