Welcome to mirror list, hosted at ThFree Co, Russian Federation.

release.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7a09ee459a6fc991b1829daaa3a2a423ee22e4aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

class Release < ActiveRecord::Base
  include CacheMarkdownField

  cache_markdown_field :description

  belongs_to :project
  belongs_to :author, class_name: 'User'

  validates :description, :project, :tag, presence: true
end