database configuration does not specify adapter
Share this page | Read it later using CloudBreak Wallabag
From an answer I wrote for StackOverflow:
Another possible cause:
In Rails 3.2.x,
establish_connectionhas a default argument set from the environment:From connection_specification.rb:
def self.establish_connection(spec = ENV["DATABASE_URL"]) resolver = ConnectionSpecification::Resolver.new spec, configurations spec = resolver.specThe way
ConnectionSpecification::Resolverworks depends onENV['DATABASE_URL']giving anilif not set. (Normally, it would be something likepostgres://...).So, if you happen to have misconfigured
DATABASE_URLsuch thatENV['DATABASE_URL'] == '', that will give youdatabase configuration does not specify adapter.