feat: Add the ability to create custom attribute (#2903)

This commit is contained in:
Sivin Varghese
2021-08-31 13:54:34 +05:30
committed by GitHub
parent 75329e5de1
commit fdcc322660
12 changed files with 550 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ class CustomAttributeDefinition < ApplicationRecord
validates :attribute_model, presence: true
enum attribute_model: { conversation_attribute: 0, contact_attribute: 1 }
enum attribute_display_type: { text: 0, number: 1, currency: 2, percent: 3, link: 4 }
enum attribute_display_type: { text: 0, number: 1, currency: 2, percent: 3, link: 4, date: 5 }
belongs_to :account
end