1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 05:09:38 +02:00

Fix linting issues in migration file
Some checks are pending
Publish Docker image / ci (push) Waiting to run
Publish Docker image / Build docker image (push) Blocked by required conditions

This commit is contained in:
Josh Pigford 2025-06-23 11:31:57 -05:00
parent 653decbc0b
commit c0617f74cd

View file

@ -12,8 +12,8 @@ class UpdateOutdatedTimezones < ActiveRecord::Migration[7.2]
def up def up
TIMEZONE_MAPPINGS.each do |old_tz, new_tz| TIMEZONE_MAPPINGS.each do |old_tz, new_tz|
execute <<-SQL execute <<-SQL
UPDATE families UPDATE families#{' '}
SET timezone = '#{new_tz}' SET timezone = '#{new_tz}'#{' '}
WHERE timezone = '#{old_tz}' WHERE timezone = '#{old_tz}'
SQL SQL
end end
@ -22,8 +22,8 @@ class UpdateOutdatedTimezones < ActiveRecord::Migration[7.2]
def down def down
TIMEZONE_MAPPINGS.each do |old_tz, new_tz| TIMEZONE_MAPPINGS.each do |old_tz, new_tz|
execute <<-SQL execute <<-SQL
UPDATE families UPDATE families#{' '}
SET timezone = '#{old_tz}' SET timezone = '#{old_tz}'#{' '}
WHERE timezone = '#{new_tz}' WHERE timezone = '#{new_tz}'
SQL SQL
end end