Publisher review:How to get the underlying database connection out of ActiveRecord::Base - you want to get at the underlying database connection object, e.g. so you can do something like create_function or create_aggregate on a SQLite database. Problem: you want to get at the underlying database connection object, e.g. so you can do something like create_function or create_aggregate on a SQLite database.
You try ActiveRecord::Base.connection but that just gives you the Rails connection adapter, not theconnection but that just gives you the>
How to get the underlying database connection out is a Ruby script for Snippets scripts design by jonathan.
It runs on following operating system: Windows / Linux.
Operating system:Windows / Linux