Add template and output for index view
Add int defaults to up migration