class Project < ActiveRecord::Base acts_as_tree belongs_to :owner, :class_name => :person, :foreign_key => :owner_id has_many :purchase_orders has_many :clients, :through => :fundings validates_presence_of :title validates_presence_of :funds end