diff options
Diffstat (limited to 'app/models/organizations/organization_detail.rb')
-rw-r--r-- | app/models/organizations/organization_detail.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/models/organizations/organization_detail.rb b/app/models/organizations/organization_detail.rb new file mode 100644 index 00000000000..2814f412d59 --- /dev/null +++ b/app/models/organizations/organization_detail.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Organizations + class OrganizationDetail < ApplicationRecord + include CacheMarkdownField + + cache_markdown_field :description + + belongs_to :organization, inverse_of: :organization_detail + + validates :organization, presence: true + validates :description, length: { maximum: 1024 } + end +end |