feat: Add an option to enable/disable email collect box (#2399)

* add email collect enabled migration

* migrations

* expose enable_email_collect field

* add select for email collect

* add enable_email condition on new conversation

* add default value true for enable_email_collect

* add specs for email collect enabled

* rereun migration

* code cleanup

* update token life span to 2 months

* revert uuid column
This commit is contained in:
Muhsin Keloth 2021-06-10 15:04:03 +05:30 committed by GitHub
parent 8ca63f0b79
commit b9e40d1452
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 56 additions and 7 deletions

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_05_27_173755) do
ActiveRecord::Schema.define(version: 2021_06_09_133433) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
@ -322,6 +322,7 @@ ActiveRecord::Schema.define(version: 2021_05_27_173755) do
t.boolean "working_hours_enabled", default: false
t.string "out_of_office_message"
t.string "timezone", default: "UTC"
t.boolean "enable_email_collect", default: true
t.index ["account_id"], name: "index_inboxes_on_account_id"
end