Loomio

rake db:setup - database "loomio_development" does not exist

A
Alan Public Seen by 99

On Ubuntu, following the setup guide, both rake db:create or setup both error

A

Alan Sat 18 Apr 2020

rake db:setup
**************************************************
⛔ WARNING: Sidekiq testing API enabled, but this is not the test environment.  Your jobs will not go to Redis.
**************************************************
rake aborted!
ActiveRecord::NoDatabaseError: FATAL:  database "loomio_development" does not exist

It's loading the rails app through environment.rb and failing in models/membership.rb on `update_counter_cache` . Not sure why it won't create the db first..

RG

Rob Guthrie Sat 18 Apr 2020

Hi @Alan, how about if you run:

createdb loomio_development

A

Alan Sat 18 Apr 2020

Hi @Rob Guthrie That works! Many thanks. Have it running now.