This is a talk I gave at PDX.rb in May 2015.
This repository contains the slides and my notes (in talk),
and a sample Rails app with RSpec tests to make sure I wasn't lying (in src).
You can find the slides pre-built here:
http://illuminatedcomputing.com/talks/rails-and-sql/
and the video here: