generated scaffolds for all needed rails models
merged code from Dan's repo manually