Files
sure/db/migrate/20260105225906_remove_synthfinance_logo_urls.rb
Copilot f012e38824 Remove invalid logo.synthfinance.com URLs from merchants table (#553)
* Initial plan

* Add migration to remove synthfinance.com logo URLs from merchants table

Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>

* Update migration to match specific logo.synthfinance.com domain

Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>

* Update schema version to include RemoveSynthfinanceLogoUrls migration

Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>

---------

Signed-off-by: Juan José Mata <juanjo.mata@gmail.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>
Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
2026-01-10 18:51:58 +01:00

16 lines
407 B
Ruby

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