"stable" branch will not downgrade - fails on db:migrate

It should be in there. Try this:

  1. cd /var/discourse
  2. Stop the container in case it is still running: sudo ./launcher stop app
  3. Delete the database: sudo rm -rf shared/standalone/
    :warning: This step will delete all Discourse-related data!
  4. Make sure app.yml is on the stable version
  5. Run sudo ./launcher rebuild app to bootstrap and start the container, which will create a fresh database

The important thing is not to bootstrap any newer version before having selected stable, or deleting the shared folder in-between – anything else would be a downgrade of a (mostly empty) Discourse database, which is unsupported.