Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Awesome_nested_set gem 带有默认列
:parent_id :lft :right
如何配置它们以使用不同的名称。
从awesome_nested_set宝石README:
awesome_nested_set
README
您可以将各种选项传递给acts_as_nested_set宏。配置选项有: parent_column:指定用于保持位置整数的列名(默认值:parent_id) left_column:左边界数据的列名(默认值:lft) right_column:右边界数据的列名(默认值:rgt)
您可以将各种选项传递给acts_as_nested_set宏。配置选项有:
acts_as_nested_set
parent_column
left_column
right_column