release.rb 258 Bytes
Newer Older
1 2
# frozen_string_literal: true

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
3
class Release < ActiveRecord::Base
4 5 6 7
  include CacheMarkdownField

  cache_markdown_field :description

8
  belongs_to :project
9
  belongs_to :author, class_name: 'User'
10

11
  validates :description, :project, :tag, presence: true
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
12
end