socialforge/app/models/sub_domain.rb

6 lines
242 B
Ruby

class SubDomain < ActiveRecord::Base
attr_accessible :field_type, :hide, :name, :org_subfield_id, :priority, :status
belongs_to :org_subfield, :foreign_key => :org_subfield_id
has_many :sub_document_comments, :dependent => :destroy
end