Generates a policy in a Sails app.