use distinct policy name to avoid colliding with user-created policies
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.1].define(version: 2026_03_16_000001) do
|
||||
ActiveRecord::Schema[7.1].define(version: 2026_02_26_153427) do
|
||||
# These extensions should be enabled to support this database
|
||||
enable_extension "pg_stat_statements"
|
||||
enable_extension "pg_trgm"
|
||||
|
||||
@@ -10,7 +10,7 @@ class Migration::AccountAssignmentPolicyJob < ApplicationJob
|
||||
return if inboxes_with_limit.empty?
|
||||
|
||||
ActiveRecord::Base.transaction do
|
||||
policy = AgentCapacityPolicy.find_or_create_by!(account: account, name: 'Auto Assignment Capacity') do |p|
|
||||
policy = AgentCapacityPolicy.find_or_create_by!(account: account, name: 'Migrated Auto Assignment Capacity') do |p|
|
||||
p.description = 'Migrated from inbox max_assignment_limit'
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user