How to connect to MySQL using ActiveRecord?

Hi rubyists,

How do I connect to a MySQL database using ActiveRecord?

Yours Sincerely,

Surya Poojary

If you're using AR by itself, i.e. outside of Rails, see the docs for:

ActiveRecord::ConnectionAdapters::ConnectionHandler.establish_connection(config)

ยทยทยท

On Sun, Dec 10, 2017 at 7:41 PM, Surya Poojary <suryapjr@gmail.com> wrote:

How do I connect to a MySQL database using ActiveRecord?

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote