How to execute raw SQL in rails?

This article explains how to write and execute raw SQL in rails.