📜  rails 多对多关系相同模型 - Ruby 代码示例

📅  最后修改于: 2022-03-11 15:04:47.535000             🧑  作者: Mango

代码示例1
class PageAssociation < ActiveRecord::Base

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

end