2015-11-13 13:22:46 -05:00
|
|
|
# == 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
|
|
|
|
#
|
|
|
|
|
2015-11-05 05:03:02 -05:00
|
|
|
class Release < ActiveRecord::Base
|
2015-11-06 09:29:04 -05:00
|
|
|
belongs_to :project
|
|
|
|
|
2015-11-09 09:30:50 -05:00
|
|
|
validates :description, :project, :tag, presence: true
|
2015-11-05 05:03:02 -05:00
|
|
|
end
|