debian-mirror-gitlab/app/models/release.rb

10 lines
186 B
Ruby
Raw Normal View History

2015-11-26 14:37:03 +05:30
class Release < ActiveRecord::Base
2016-11-03 12:29:30 +05:30
include CacheMarkdownField
cache_markdown_field :description
2015-11-26 14:37:03 +05:30
belongs_to :project
validates :description, :project, :tag, presence: true
end