mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
* 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>
16 lines
407 B
Ruby
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
|