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