CircleCI Ideas

Ruby Database Adapters Order Precedence

In CircleCI 1.0 I noticed, that postgres (`pg` gem) always has precedence over mysql (`mysql2` gem). I'd suggest to give precedence first/last mentioned adapter in `Gemfile`.

For example:

Infer Postgres if:

# Gemfile
gem 'rails', '4.2.1'
gem 'pg', '~> 0.18' # appears first in the gem list
gem 'mysql2'

Infer MySQL if:

# Gemfile
gem 'rails', '4.2.1'
gem 'mysql2' # appears first in the gem list
gem 'pg', '~> 0.18'
  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Feb 28 2018
  • Not planned
  • Mar 2, 2018

    Admin Response

    For CircleCI 2.0 jobs we no longer provide inferred steps for database setups. Please check out the 2.0 configuration doc for details on how to write your own database configuration step in CircleCI 2.0. Thanks!

  • Attach files