Migrate database when deploying.
Merge branch 'master' into devise

* master:
  Migrate database when deploying.