I’m using ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux].
I wanted to install Discourse, so after a
sudo -u discourse -s /usr/bin/bash -c "cd /srv/http/discourse; bundle install --no-cache --no-prune --deployment --without development test"
I was running:
sudo -u discourse -s /usr/bin/bash -c "cd /srv/http/discourse; bundle exec rake db:create db:migrate db:test:prepare RAILS_ENV=production"
then at the end, I got:
== Seed from /srv/http/discourse/db/fixtures/500_lounge_category.rb == Seed from /srv/http/discourse/db/fixtures/501_meta_category.rb == Seed from /srv/http/discourse/db/fixtures/502_staff_category.rb == Seed from /srv/http/discourse/db/fixtures/999_settings.rb == Seed from /srv/http/discourse/db/fixtures/999_topics.rb rake aborted! NoMethodError: undefined method `' for nil:NilClass /srv/http/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/tasks/database_tasks.rb:144:in `purge' /srv/http/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/railties/databases.rake:347:in `block (3 levels) in <top (required)>' /srv/http/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/railties/databases.rake:353:in `block (3 levels) in <top (required)>' Tasks: TOP => db:test:load => db:test:purge
It’s with the Master version of Discourse I’m getting this issue and also with some previous tested versions like 1.3.2.