mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-29 18:22:53 +00:00
Initial Commit
Co-authored-by: Subin <subinthattaparambil@gmail.com> Co-authored-by: Manoj <manojmj92@gmail.com> Co-authored-by: Nithin <webofnithin@gmail.com>
This commit is contained in:
5
app/models/telegram_bot.rb
Normal file
5
app/models/telegram_bot.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class TelegramBot < ApplicationRecord
|
||||
belongs_to :account
|
||||
has_one :inbox, as: :channel, dependent: :destroy
|
||||
validates_uniqueness_of :auth_key, scope: :account_id
|
||||
end
|
||||
Reference in New Issue
Block a user