diff options
| author | Alban Peignier | 2018-04-25 22:37:16 +0200 |
|---|---|---|
| committer | Alban Peignier | 2018-04-25 22:44:51 +0200 |
| commit | 71d94145db5201b421f251f8aa8b45ea5d41dc7d (patch) | |
| tree | 9144aab436d4c1e0e274533d903093a0c051cd95 /db | |
| parent | 0e64912dd2c299df543ed03e2cd6609bc7d6dec6 (diff) | |
| download | chouette-core-71d94145db5201b421f251f8aa8b45ea5d41dc7d.tar.bz2 | |
Avoid callbacks in FixTimezones updates. Refs #6683
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20180425133154_fix_timezones.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20180425133154_fix_timezones.rb b/db/migrate/20180425133154_fix_timezones.rb index 0e9e5fcb3..0c854c251 100644 --- a/db/migrate/20180425133154_fix_timezones.rb +++ b/db/migrate/20180425133154_fix_timezones.rb @@ -8,11 +8,11 @@ class FixTimezones < ActiveRecord::Migration def change if Apartment::Tenant.current == "public" Chouette::StopArea.where.not("time_zone LIKE '%/%'").find_each do |s| - s.update time_zone: convert(s.time_zone) + s.update_column :time_zone, convert(s.time_zone) end Chouette::Company.where.not("time_zone LIKE '%/%'").find_each do |c| - c.update time_zone: convert(c.time_zone) + c.update_column :time_zone, convert(c.time_zone) end end end |
