choore: Change values to attribute_values in custom attributes (#3413)

This commit is contained in:
Muhsin Keloth
2021-11-18 18:59:28 +05:30
committed by GitHub
parent a3ba8f9e35
commit bf96e8b68d
5 changed files with 10 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ class Api::V1::Accounts::CustomAttributeDefinitionsController < Api::V1::Account
:attribute_display_type,
:attribute_key,
:attribute_model,
:default_value
attribute_values: []
)
end

View File

@@ -8,8 +8,8 @@
# attribute_display_type :integer default("text")
# attribute_key :string
# attribute_model :integer default("conversation_attribute")
# attribute_values :jsonb
# default_value :integer
# values :jsonb
# created_at :datetime not null
# updated_at :datetime not null
# account_id :bigint

View File

@@ -3,6 +3,7 @@ json.attribute_display_name resource.attribute_display_name
json.attribute_display_type resource.attribute_display_type
json.attribute_description resource.attribute_description
json.attribute_key resource.attribute_key
json.attribute_values resource.attribute_values
json.attribute_model resource.attribute_model
json.default_value resource.default_value
json.created_at resource.created_at