Skip to content

Commit

Permalink
Disable troublesome migration
Browse files Browse the repository at this point in the history
  • Loading branch information
fumimowdan committed Sep 13, 2023
1 parent 723149f commit f040c60
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions db/migrate/20230721082851_enable_opening_times.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f040c60

Please sign in to comment.