Skip to content

Instantly share code, notes, and snippets.

class Component < ActiveRecord::Base
has_many :components
#this is the 'other side' of the has_many :components statement
belongs_to :component
has_one :sub_component
end