2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
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'
|
|
|
|
|
2011-11-24 21:46:19 +00:00
|
|
|
validates :name, :project_id, :onwer_id, :presence => true
|
2011-03-15 21:52:27 +00:00
|
|
|
end
|