feat: Macros CRUD api (#5047)

This commit is contained in:
Tejaswini Chile
2022-07-19 17:37:00 +05:30
committed by GitHub
parent c4b2005425
commit 0cee42a9f9
17 changed files with 460 additions and 2 deletions

View File

@@ -40,7 +40,8 @@ class Account < ApplicationRecord
has_many :agent_bots, dependent: :destroy_async
has_many :api_channels, dependent: :destroy_async, class_name: '::Channel::Api'
has_many :articles, dependent: :destroy_async, class_name: '::Article'
has_many :automation_rules, dependent: :destroy
has_many :automation_rules, dependent: :destroy_async
has_many :macros, dependent: :destroy_async
has_many :campaigns, dependent: :destroy_async
has_many :canned_responses, dependent: :destroy_async
has_many :categories, dependent: :destroy_async, class_name: '::Category'