I am trying to figure out the "right" way to do this.
In my application every time I create a new user I want to have specific data loaded into an associated table. The associated table is a different preset lists. So a User has many lists and those lists have many items. Some of those Items I want to be loaded when the User is created.
I really don't know how to go about doing this but I am guessing something like: create User after_create: create Lists (need already existing data for the list names) after_create List then populate Items table with existing data for these Lists.
Should I be using seed data for this? Is that alright for production and if so how exactly would I go about doing that.
Any guidance or other recommendations are greatly appreciated.
The using of seed is really made for insert all data needed by your application like your list.
For me it's the good way. I don't have some pointer. By example, In redmine there are a bootstrap insertion.