Answers for "how to generate a many to many relationship with rails"

0

rails many to many relationship same model

class PageAssociation < ActiveRecord::Base

  belongs_to :left_page, :class_name => 'Page'
  belongs_to :right_page, :class_name => 'Page'

end
Posted by: Guest on March-10-2020

Code answers related to "how to generate a many to many relationship with rails"

Browse Popular Code Answers by Language