To set up your model as Nested Set, you must add the following code to your model's table definition.