B
B
bgr11n2014-08-03 17:23:18
Ruby on Rails
bgr11n, 2014-08-03 17:23:18

How to set the "depth" of the tree when generating comments?

Good afternoon!
It is necessary to create a test data generator for the comments table; when generating, you must set the number of comments and the maximum "depth" of these comments, i.e. The maximum number of replies per replies to a comment.
So, please tell me how, when generating these very comments, you can set the "depth" of comments?
Thanks in advance for your replies, sorry if I didn't explain well!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question