From 3038e672f817a25f608b85bb4b457e5c56f597a4 Mon Sep 17 00:00:00 2001 From: Sojan Jose Date: Wed, 20 Aug 2025 20:23:42 +0200 Subject: [PATCH] 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 --- app/models/assignment_policy.rb | 2 +- app/models/notification.rb | 1 + db/migrate/20250709102213_add_template_params_to_campaigns.rb | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/models/assignment_policy.rb b/app/models/assignment_policy.rb index c01ab91c4..a76893d61 100644 --- a/app/models/assignment_policy.rb +++ b/app/models/assignment_policy.rb @@ -3,7 +3,7 @@ # Table name: assignment_policies # # 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 # description :text # enabled :boolean default(TRUE), not null diff --git a/app/models/notification.rb b/app/models/notification.rb index 8c4162702..db07e3679 100644 --- a/app/models/notification.rb +++ b/app/models/notification.rb @@ -19,6 +19,7 @@ # # Indexes # +# idx_notifications_performance (user_id,account_id,snoozed_until,read_at) # index_notifications_on_account_id (account_id) # index_notifications_on_last_activity_at (last_activity_at) # index_notifications_on_user_id (user_id) diff --git a/db/migrate/20250709102213_add_template_params_to_campaigns.rb b/db/migrate/20250709102213_add_template_params_to_campaigns.rb index d70359b30..99d29071f 100644 --- a/db/migrate/20250709102213_add_template_params_to_campaigns.rb +++ b/db/migrate/20250709102213_add_template_params_to_campaigns.rb @@ -1,5 +1,5 @@ class AddTemplateParamsToCampaigns < ActiveRecord::Migration[7.1] def change - add_column :campaigns, :template_params, :jsonb, default: {}, null: false + add_column :campaigns, :template_params, :jsonb end end