Migrate the database after code update

It is very strange that this is not the default behavior.
Set production hostname for Devise