Overwrite assets:precompile when packaging, migrate database first.

Discourse expects to be able to access various tables from the database
when it precompiles assets.