diff --git a/app/controllers/concerns/simplefin_items/maps_helper.rb b/app/controllers/concerns/simplefin_items/maps_helper.rb index 8067cb50461..70495b377a3 100644 --- a/app/controllers/concerns/simplefin_items/maps_helper.rb +++ b/app/controllers/concerns/simplefin_items/maps_helper.rb @@ -87,7 +87,8 @@ def compute_duplicate_only_flag(stats) end end errs.present? && errs.all? { |m| m.to_s.downcase.include?("duplicate upstream account detected") } - rescue + rescue StandardError => e + Rails.logger.warn("SimpleFin maps: compute_duplicate_only_flag failed: #{e.class} - #{e.message}") false end end diff --git a/db/migrate/20251103185320_drop_was_merged_from_transactions.rb b/db/migrate/20251103185320_drop_was_merged_from_transactions.rb index 6adb411ce15..8992230ca16 100644 --- a/db/migrate/20251103185320_drop_was_merged_from_transactions.rb +++ b/db/migrate/20251103185320_drop_was_merged_from_transactions.rb @@ -7,9 +7,9 @@ def up end def down - # Recreate the column for rollback compatibility + # Recreate the column for rollback compatibility with original constraints unless column_exists?(:transactions, :was_merged) - add_column :transactions, :was_merged, :boolean + add_column :transactions, :was_merged, :boolean, null: false, default: false end end end