Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

Remove invalid logo.synthfinance.com URLs from merchants table (#553)

Copilotf012e38824ba
diff --git a/db/migrate/20260105225906_remove_synthfinance_logo_urls.rb b/db/migrate/20260105225906_remove_synthfinance_logo_urls.rb
new file mode 100644
index 0000000000..772d1eed67
--- /dev/null
+++ b/db/migrate/20260105225906_remove_synthfinance_logo_urls.rb
@@ -0,0 +1,15 @@
+class RemoveSynthfinanceLogoUrls < ActiveRecord::Migration[7.2]
+ def up
+ # Remove logo URLs pointing to the old synthfinance.com domain
+ # These URLs are no longer valid and should be set to NULL
+ execute <<-SQL
+ UPDATE merchants
+ SET logo_url = NULL
+ WHERE logo_url LIKE '%logo.synthfinance.com%'
+ SQL
+ end
+
+ def down
+ # No-op: we can't restore the old logo URLs
+ end
+end