class Client < ActiveRecord::Base

  has_many :facts, :dependent => :destroy
  has_many :configs, :dependent => :destroy
  has_many :results, :dependent => :destroy

  validates_presence_of :name
  validates_uniqueness_of :name
  validates_numericality_of :status, :only_integer => true, :allow_nil => true

end

class Client < ActiveRecord::Base

  has_many :facts, :dependent => :destroy
  has_many :originals, :dependent => :destroy
  has_many :etch_configs, :dependent => :destroy
  has_many :results, :dependent => :destroy

  validates_presence_of :name
  validates_uniqueness_of :name
  validates_numericality_of :status, :only_integer => true, :allow_nil => true

end

Update the relationships with other models
Update the relationships with other models


git-svn-id: 907a5e332d9df9b9d6ff346e9993373f8c03b4a0@66 59d7d9da-0ff4-4beb-9ab8-e480f87378b2
