Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

Fix linting issues in migration file

Josh Pigfordc0617f74cdad
diff --git a/db/migrate/20250623162207_update_outdated_timezones.rb b/db/migrate/20250623162207_update_outdated_timezones.rb
index cc506fe7..33509ec4 100644
--- a/db/migrate/20250623162207_update_outdated_timezones.rb
+++ b/db/migrate/20250623162207_update_outdated_timezones.rb
@@ -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,10 +22,10 @@ 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
end
-end
\ No newline at end of file
+end