Completed script to write generated models out to app/models/