Fix: add option to choose 24 hour working slot (#4018)
* Add option to choose 24 hour working slot * fix spec * add check to update open hour and close hour for open all day * update 24 hour working slot change in widget side * add validation to check open_all_day and closed_all_day true at the same time
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddOpenAllDayToWorkingHour < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :working_hours, :open_all_day, :boolean, default: false
|
||||
end
|
||||
end
|
||||
@@ -773,6 +773,7 @@ ActiveRecord::Schema.define(version: 2022_02_18_120357) do
|
||||
t.integer "close_minutes"
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.boolean "open_all_day", default: false
|
||||
t.index ["account_id"], name: "index_working_hours_on_account_id"
|
||||
t.index ["inbox_id"], name: "index_working_hours_on_inbox_id"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user