1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-18 20:59:39 +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
TIMEZONE_MAPPINGS.each do |old_tz, new_tz|
execute <<-SQL
UPDATE families
SET timezone = '#{new_tz}'
UPDATE families#{' '}
SET timezone = '#{new_tz}'#{' '}
WHERE timezone = '#{old_tz}'
SQL
end
@ -22,8 +22,8 @@ class UpdateOutdatedTimezones < ActiveRecord::Migration[7.2]
def down
TIMEZONE_MAPPINGS.each do |old_tz, new_tz|
execute <<-SQL
UPDATE families
SET timezone = '#{old_tz}'
UPDATE families#{' '}
SET timezone = '#{old_tz}'#{' '}
WHERE timezone = '#{new_tz}'
SQL
end