Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
21
research/chatwoot/app/models/inbox_assignment_policy.rb
Normal file
21
research/chatwoot/app/models/inbox_assignment_policy.rb
Normal file
@@ -0,0 +1,21 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: inbox_assignment_policies
|
||||
#
|
||||
# id :bigint not null, primary key
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# assignment_policy_id :bigint not null
|
||||
# inbox_id :bigint not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_inbox_assignment_policies_on_assignment_policy_id (assignment_policy_id)
|
||||
# index_inbox_assignment_policies_on_inbox_id (inbox_id) UNIQUE
|
||||
#
|
||||
class InboxAssignmentPolicy < ApplicationRecord
|
||||
belongs_to :inbox
|
||||
belongs_to :assignment_policy
|
||||
|
||||
validates :inbox_id, uniqueness: true
|
||||
end
|
||||
Reference in New Issue
Block a user