mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-29 10:12:34 +00:00
Co-authored-by: Subin <subinthattaparambil@gmail.com> Co-authored-by: Manoj <manojmj92@gmail.com> Co-authored-by: Nithin <webofnithin@gmail.com>
6 lines
172 B
Ruby
6 lines
172 B
Ruby
class TelegramBot < ApplicationRecord
|
|
belongs_to :account
|
|
has_one :inbox, as: :channel, dependent: :destroy
|
|
validates_uniqueness_of :auth_key, scope: :account_id
|
|
end
|