class Customer < ActiveRecord::Base
has_many :projects
end
class Project < ActiveRecord::Base
has_many :works
belongs_to :customer
end
class Customer < ActiveRecord::Base
has_many :projects
end
class Project < ActiveRecord::Base
has_many :works
belongs_to :customer
end
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs