feat: Add APIs for custom attribute definitions (#2689)

This commit is contained in:
Pranav Raj S
2021-07-23 17:04:33 +05:30
committed by GitHub
parent 7e0937f3ed
commit 6e1493501a
13 changed files with 284 additions and 1 deletions

View File

@@ -61,6 +61,8 @@ class Account < ApplicationRecord
has_many :kbase_articles, dependent: :destroy, class_name: '::Kbase::Article'
has_many :teams, dependent: :destroy
has_many :custom_filters, dependent: :destroy
has_many :custom_attribute_definitions, dependent: :destroy
has_flags ACCOUNT_SETTINGS_FLAGS.merge(column: 'settings_flags').merge(DEFAULT_QUERY_SETTING)
enum locale: LANGUAGES_CONFIG.map { |key, val| [val[:iso_639_1_code], key] }.to_h