Generating Pledge model and adding appropriate associations