mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 12:37:56 +00:00
chore(annotations): sync model annotations with current schema (#12245)
- Update Schema Information headers for AssignmentPolicy, Campaign, Notification - Reflect schema change for Campaign.template_params (not null with default) - Keep annotations consistent to avoid drift
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
# Table name: assignment_policies
|
# Table name: assignment_policies
|
||||||
#
|
#
|
||||||
# id :bigint not null, primary key
|
# id :bigint not null, primary key
|
||||||
# assignment_order :integer default(0), not null
|
# assignment_order :integer default("round_robin"), not null
|
||||||
# conversation_priority :integer default("earliest_created"), not null
|
# conversation_priority :integer default("earliest_created"), not null
|
||||||
# description :text
|
# description :text
|
||||||
# enabled :boolean default(TRUE), not null
|
# enabled :boolean default(TRUE), not null
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
# idx_notifications_performance (user_id,account_id,snoozed_until,read_at)
|
||||||
# index_notifications_on_account_id (account_id)
|
# index_notifications_on_account_id (account_id)
|
||||||
# index_notifications_on_last_activity_at (last_activity_at)
|
# index_notifications_on_last_activity_at (last_activity_at)
|
||||||
# index_notifications_on_user_id (user_id)
|
# index_notifications_on_user_id (user_id)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
class AddTemplateParamsToCampaigns < ActiveRecord::Migration[7.1]
|
class AddTemplateParamsToCampaigns < ActiveRecord::Migration[7.1]
|
||||||
def change
|
def change
|
||||||
add_column :campaigns, :template_params, :jsonb, default: {}, null: false
|
add_column :campaigns, :template_params, :jsonb
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user