Control database.yml with pre_build hook as well.
Abandon '--from-code' route for creating Redmine app.