mirror of
https://github.com/chatwoot/chatwoot.git
synced 2026-07-19 21:01:48 +08: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
|