From f040c60d3c4c444525fe138b0ebb837d4e0dda80 Mon Sep 17 00:00:00 2001 From: fumimowdan Date: Wed, 13 Sep 2023 17:04:25 +0100 Subject: [PATCH] Disable troublesome migration --- db/migrate/20230721082851_enable_opening_times.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/db/migrate/20230721082851_enable_opening_times.rb b/db/migrate/20230721082851_enable_opening_times.rb index d86d932a..53541f84 100644 --- a/db/migrate/20230721082851_enable_opening_times.rb +++ b/db/migrate/20230721082851_enable_opening_times.rb @@ -1,8 +1,9 @@ class EnableOpeningTimes < ActiveRecord::Migration[7.0] def change - AppSettings.current.update!( - service_start_date: Time.zone.yesterday, - service_end_date: Time.zone.today + 1.year, - ) + # This should be done in task not a migration + # AppSettings.current.update!( + # service_start_date: Time.zone.yesterday, + # service_end_date: Time.zone.today + 1.year, + # ) end end