rosa-build/app/models/container.rb

7 lines
196 B
Ruby
Raw Normal View History

2011-03-15 21:52:27 +00:00
class Container < ActiveRecord::Base
2011-04-07 14:20:21 +01:00
belongs_to :project
belongs_to :owner, :class_name => 'User', :foreign_key => 'owner_id'
validates :name, :project_id, :onwer_id, :presence => true
2011-03-15 21:52:27 +00:00
end