Chatwoot/db/migrate/20210609133433_add_email_collect_to_inboxes.rb
Muhsin Keloth b9e40d1452
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
2021-06-10 02:34:03 -07:00

5 lines
157 B
Ruby

class AddEmailCollectToInboxes < ActiveRecord::Migration[6.0]
def change
add_column :inboxes, :enable_email_collect, :boolean, default: true
end
end