fix: schema changes
This commit is contained in:
+2
-16
@@ -449,8 +449,8 @@ ActiveRecord::Schema[7.0].define(version: 2023_07_17_075819) do
|
||||
t.datetime "assignee_last_seen_at", precision: nil
|
||||
t.datetime "first_reply_created_at", precision: nil
|
||||
t.integer "priority"
|
||||
t.datetime "waiting_since"
|
||||
t.bigint "sla_policy_id"
|
||||
t.datetime "waiting_since"
|
||||
t.text "summary"
|
||||
t.datetime "summary_generated_at"
|
||||
t.index ["account_id", "display_id"], name: "index_conversations_on_account_id_and_display_id", unique: true
|
||||
@@ -587,8 +587,8 @@ ActiveRecord::Schema[7.0].define(version: 2023_07_17_075819) do
|
||||
t.jsonb "auto_assignment_config", default: {}
|
||||
t.boolean "lock_to_single_conversation", default: false, null: false
|
||||
t.bigint "portal_id"
|
||||
t.integer "sender_name_type", default: 0, null: false
|
||||
t.string "business_name"
|
||||
t.integer "sender_name_type", default: 0, null: false
|
||||
t.index ["account_id"], name: "index_inboxes_on_account_id"
|
||||
t.index ["channel_id", "channel_type"], name: "index_inboxes_on_channel_id_and_channel_type"
|
||||
t.index ["portal_id"], name: "index_inboxes_on_portal_id"
|
||||
@@ -617,19 +617,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_07_17_075819) do
|
||||
t.jsonb "settings", default: {}
|
||||
end
|
||||
|
||||
create_table "label_associations", force: :cascade do |t|
|
||||
t.bigint "label_id", null: false
|
||||
t.string "labelable_type", null: false
|
||||
t.bigint "labelable_id", null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["label_id"], name: "index_label_associations_on_label_id"
|
||||
t.index ["labelable_type", "labelable_id"], name: "index_label_associations_on_contact", where: "((labelable_type)::text = 'Contact'::text)"
|
||||
t.index ["labelable_type", "labelable_id"], name: "index_label_associations_on_conversation", where: "((labelable_type)::text = 'Conversation'::text)"
|
||||
t.index ["labelable_type", "labelable_id"], name: "index_label_associations_on_labelable"
|
||||
t.index ["labelable_type", "labelable_id"], name: "index_label_associations_on_labelable_type_and_labelable_id"
|
||||
end
|
||||
|
||||
create_table "labels", force: :cascade do |t|
|
||||
t.string "title"
|
||||
t.text "description"
|
||||
@@ -959,7 +946,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_07_17_075819) do
|
||||
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
|
||||
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
|
||||
add_foreign_key "inboxes", "portals"
|
||||
add_foreign_key "label_associations", "labels"
|
||||
create_trigger("accounts_after_insert_row_tr", :generated => true, :compatibility => 1).
|
||||
on("accounts").
|
||||
after(:insert).
|
||||
|
||||
Reference in New Issue
Block a user