mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +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
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue