0

Awesome_nested_set gem comes with default columns

:parent_id
:lft
:right

How can I configure them that is use different names for them.

Pikachu-go
  • 3,058
  • 4
  • 20
  • 27

1 Answers1

0

From the awesome_nested_set gem README:

You can pass various options to acts_as_nested_set macro. Configuration options are:

  • parent_column: specifies the column name to use for keeping the position integer (default: parent_id)
  • left_column: column name for left boundary data (default: lft)
  • right_column: column name for right boundary data (default: rgt)
vich
  • 11,836
  • 13
  • 49
  • 66