Sat 18 Apr 2020 3:22PM
rake db:setup - database "loomio_development" does not exist
On Ubuntu, following the setup guide, both rake db:create or setup both error
![RG](/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBK0xZRVE9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--7a581de88c41bcec9b40d2bb53a4dc7ab8efdb69/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDRG9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2RkhKbGMybDZaVjkwYjE5c2FXMXBkRnNIYVFHQWFRR0FPZ3B6WVhabGNuc0hPZ3h4ZFdGc2FYUjVhVlU2Q25OMGNtbHdWQT09IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--bee53b50eefebbfaf3427852775dd64daaceca76/IMG_4141.CR2.jpg)
Robert Guthrie Sat 18 Apr 2020 9:52PM
Hi @Alan, how about if you run:
createdb loomio_development
Alan Sat 18 Apr 2020 11:23PM
Hi @Rob Guthrie That works! Many thanks. Have it running now.
Alan · Sat 18 Apr 2020 3:25PM
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..