feat: Business hour Inbox APIs (#1821)
* feat: Business hour Inbox APIs
This commit is contained in:
11
db/migrate/20210222131048_change_working_hours_to_zero.rb
Normal file
11
db/migrate/20210222131048_change_working_hours_to_zero.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class ChangeWorkingHoursToZero < ActiveRecord::Migration[6.0]
|
||||
# rubocop:disable Rails/SkipsModelValidations
|
||||
def up
|
||||
WorkingHour.where(day_of_week: 7).update_all(day_of_week: 0)
|
||||
end
|
||||
|
||||
def down
|
||||
WorkingHour.where(day_of_week: 0).update_all(day_of_week: 7)
|
||||
end
|
||||
# rubocop:enable Rails/SkipsModelValidations
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
class SwitchTimeZoneFromAccountToInbox < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
remove_column :accounts, :timezone, :string, default: 'UTC'
|
||||
add_column :inboxes, :timezone, :string, default: 'UTC'
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user