Generating Pledge model and adding associations