Loomio
Sat 18 Apr 2020 3:22PM

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

A Alan Public Seen by 31

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

A

Alan Sat 18 Apr 2020 3:25PM

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

Robert Guthrie Sat 18 Apr 2020 9:52PM

Hi @Alan, how about if you run:

createdb loomio_development

A

Alan Sat 18 Apr 2020 11:23PM

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