Is there a method to create child objects after a parent object has been
eg i have a process class, which when created should contain at least 1
I have looked at the initialize method but not sure when this is invoked
ie when an object is created (ie saved to db) or everytime an object is
instantiated (ie read from db).
I only want to invoke the method to create child object the first time
parent object is saved to the db.
I suppose this is like a transaction (ie both records need to be saved
or none), but again not sure how this is implemented in rails.
Thanks in advance