Skip to content

Instantly share code, notes, and snippets.

@blasterpal
Created March 13, 2013 19:41
Show Gist options
  • Select an option

  • Save blasterpal/5155407 to your computer and use it in GitHub Desktop.

Select an option

Save blasterpal/5155407 to your computer and use it in GitHub Desktop.
Want to know what ORM Adapter a Rails project is using from shell in a hurry without any yaml parsing?
AR_ADAPTER=`bundle exec rails runner 'puts "#{ActiveRecord::Base.connection.instance_variable_get(:@config)[:adapter]}"'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment