How to rebuild from older discourse

doing this change in app.yml file, I got the following error:

Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 13444 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
16bc6a99648b7f08373fdb09f27edd20b3f9fab60cce1c549185eb08afbc1a1c
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

do you have any idea how to fix this?