thelac/boxplot — pull request #62 by ajyang818 (2014-05-26 21:54:05+00:00)
Title: Migrations

This moves boxplot over to migrations.

If I'm understanding the documentation correctly, there are two disadvantages with `db.sync({force: true/false})`:
* If force is false, it doesn't reflect changes to existing tables (unless the table didn't exist before)
* If force is true, it wipes all data

The initial migration (the first real initial migration, not the blank one) creates a db based off of my current local db using SQL commands and some code I found online. I believe Sequelize then picks up the relationships in db.js.

@danielsuo @yjkogan @michaelsuo thoughts?

@danielsuo we will also need to add in production credentials in config/config.json in order to get Sequelize to apply the migrations on the live app.