chore: Conversation custom attribute APIs (#3024)

This commit is contained in:
Muhsin Keloth
2021-09-22 10:46:48 +05:30
committed by GitHub
parent dddab0bbce
commit 0c24df96a8
9 changed files with 56 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
class AddCustomAttributesToConversations < ActiveRecord::Migration[6.1]
def change
add_column :conversations, :custom_attributes, :jsonb, default: {}
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_08_29_124254) do
ActiveRecord::Schema.define(version: 2021_09_16_060144) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
@@ -295,6 +295,7 @@ ActiveRecord::Schema.define(version: 2021_08_29_124254) do
t.bigint "team_id"
t.bigint "campaign_id"
t.datetime "snoozed_until"
t.jsonb "custom_attributes", default: {}
t.index ["account_id", "display_id"], name: "index_conversations_on_account_id_and_display_id", unique: true
t.index ["account_id"], name: "index_conversations_on_account_id"
t.index ["assignee_id", "account_id"], name: "index_conversations_on_assignee_id_and_account_id"