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
10 changed files with 56 additions and 7 deletions

View File

@@ -0,0 +1,5 @@
class AddEmailCollectToInboxes < ActiveRecord::Migration[6.0]
def change
add_column :inboxes, :enable_email_collect, :boolean, default: true
end
end