diff --git a/app/models/inbox.rb b/app/models/inbox.rb index e331901cb..15e21e150 100644 --- a/app/models/inbox.rb +++ b/app/models/inbox.rb @@ -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) diff --git a/db/migrate/20210618095823_add_csat_toggle_for_inbox.rb b/db/migrate/20210618095823_add_csat_toggle_for_inbox.rb new file mode 100644 index 000000000..bcdfd839c --- /dev/null +++ b/db/migrate/20210618095823_add_csat_toggle_for_inbox.rb @@ -0,0 +1,5 @@ +class AddCsatToggleForInbox < ActiveRecord::Migration[6.0] + def change + add_column :inboxes, :csat_survey_enabled, :boolean, default: false + end +end diff --git a/db/schema.rb b/db/schema.rb index 4edb50157..1e22906be 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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