mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-18 20:59:39 +02:00
Fix linting issues in migration file
This commit is contained in:
parent
653decbc0b
commit
c0617f74cd
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue