I have a model, MyModel, which should, after it is created, created associated records of type MyAssociation. I need to run code like the below after a create on the MyModel:
myass = MyAssociation.new
myass.mymodel_id = self.id
myass.save
What is the best method to accomplish this?