mirror of
https://github.com/we-promise/sure.git
synced 2026-08-12 11:10:20 +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:
co-authored by
jjmata
copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Juan José Mata
parent
78aa064bb0
commit
f012e38824
@@ -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