I'm using rails 5.2.2.1 with postgresql 10.6, and I'm not able to create a database in my development environment. When I run
bin/rake db:create
or
bundle exec rake db:create
I get
rake aborted!
ActiveRecord::NoDatabaseError: FATAL: database "mplaces_dev" does not exist
/home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.2.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:696:in `rescue in connect'
/home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.2.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:691:in `connect'
I am trying to create the database so, naturally, it does not exist. However rails should create it ... Here's my config/database.yml:
development:
adapter: postgis
database: mplaces_dev
encoding: unicode
username: postgres
password: postgres
host: localhost
postgis_extension: true
schema_search_path: "public,postgis"
However I also created all the extensions. I've been at this for more than an hour, and still can't understand why this is happening ...
Thanks!
postgresin you're system? &pggem in you're applicationpostgischange this topostgresql