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