Chatwoot/app/models/canned_response.rb

9 lines
228 B
Ruby
Raw Normal View History

class CannedResponse < ApplicationRecord
validates_presence_of :content
validates_presence_of :short_code
validates_presence_of :account
validates_uniqueness_of :short_code, scope: :account_id
belongs_to :account
end