mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
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>
This commit is contained in:
15
db/migrate/20260105225906_remove_synthfinance_logo_urls.rb
Normal file
15
db/migrate/20260105225906_remove_synthfinance_logo_urls.rb
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user