I have Ruby on Rails project which is connected to two databases. To make make my tests to pass I need to have two databases created. My circle.yml file looks like that:
dependencies: pre: - bash deploy/circle-dependencies.sh machine: timezone: America/Los_Angeles database: override: - mv config/database.ci.yml config/database.yml - bundle exec rake db:create db:structure:load --trace - createdb dashboard_test - psql dashboard_test < db/dashboard_test.sql
I see that steps that are responsible for creating and filling
dashboard_test database are passing. But when I run my specs then following error appears:
ActiveRecord::AdapterNotSpecified: 'dashboard_test' database is not configured. Available: ["test"]
How can I fix that?