I\'m using Rails with Postgres DB Docker container attached. It looks like I\'m getting below error when I run rails c:
rails c
/usr/local/rvm/rubies/ruby-2
Rename your environment variable!
DATABASE_URL is reserved by Rails, and interpreted by ActiveRecord itself. I ran into the same issue.
DATABASE_URL
Instead, use something like this:
host: <%= ENV['DB_HOST'] %> password: <%= ENV['DB_PWD'] %>