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

18 lines
351 B
Ruby
Raw Normal View History

2015-11-26 14:37:03 +05:30
# == Schema Information
#
# Table name: releases
#
# id :integer not null, primary key
# tag :string(255)
# description :text
# project_id :integer
# created_at :datetime
# updated_at :datetime
#
class Release < ActiveRecord::Base
belongs_to :project
validates :description, :project, :tag, presence: true
end