chore: Add CSAT survey toggle attribute to Inboxes (#2455)

ref: #1890
This commit is contained in:
Sojan Jose 2021-06-18 15:55:48 +05:30 committed by GitHub
parent 6cdefb19a2
commit 50e4bb3e63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View file

@ -6,6 +6,7 @@
#
# id :integer not null, primary key
# channel_type :string
# csat_survey_enabled :boolean default(FALSE)
# email_address :string
# enable_auto_assignment :boolean default(TRUE)
# enable_email_collect :boolean default(TRUE)

View file

@ -0,0 +1,5 @@
class AddCsatToggleForInbox < ActiveRecord::Migration[6.0]
def change
add_column :inboxes, :csat_survey_enabled, :boolean, default: false
end
end

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_06_09_133433) do
ActiveRecord::Schema.define(version: 2021_06_18_095823) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
@ -329,6 +329,7 @@ ActiveRecord::Schema.define(version: 2021_06_09_133433) do
t.string "out_of_office_message"
t.string "timezone", default: "UTC"
t.boolean "enable_email_collect", default: true
t.boolean "csat_survey_enabled", default: false
t.index ["account_id"], name: "index_inboxes_on_account_id"
end