데이터베이스 "discourse_development"이(가) 존재하지 않습니다

최근 git pull 업데이트 후 rake db:create로 데이터베이스를 생성하려고 하는데 다음과 같은 오류가 발생합니다:

rake aborted!
ActiveRecord::NoDatabaseError: FATAL:  database "discourse_development" does not exist
/vagrant/discourse/lib/site_settings/db_provider.rb:61:in `table_exists?'
/vagrant/discourse/lib/site_settings/db_provider.rb:16:in `all'
/vagrant/discourse/lib/site_settings/defaults_provider.rb:29:in `db_all'
/vagrant/discourse/lib/site_setting_extension.rb:277:in `block in refresh!'
/vagrant/discourse/lib/site_setting_extension.rb:274:in `synchronize'
/vagrant/discourse/lib/site_setting_extension.rb:274:in `refresh!'
/vagrant/discourse/lib/site_setting_extension.rb:479:in `block in setup_methods'
/vagrant/discourse/plugins/discourse-narrative-bot/plugin.rb:51:in `block in activate!'
/vagrant/discourse/lib/plugin/instance.rb:329:in `block in notify_after_initialize'
/vagrant/discourse/lib/plugin/instance.rb:327:in `each'
/vagrant/discourse/lib/plugin/instance.rb:327:in `notify_after_initialize'
/vagrant/discourse/config/application.rb:307:in `each'
/vagrant/discourse/config/application.rb:307:in `block in <class:Application>'

물론 데이터베이스가 존재하지 않습니다! 그래서 생성하려고 하는 건데… 이해가 되지 않습니다.

다음과 같이 시도해 보세요:

bundle exec rake db:create
bundle exec rake db:migrate

로컬 데이터베이스가 없습니다.

같은 문제를 확인했습니다. 최근 rails zeitwerk 사용을 위한 변경 사항으로 인해 발생한 문제입니다. 수정 방법을 조사하고 있습니다.

그동안은 다음과 같이 수행할 수 있습니다.

$ createdb discourse_development

대신 실행하세요.

이제 수정되었습니다. 불편을 드려 죄송합니다.