Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/controllers/concerns/simplefin_items/maps_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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