Ruby on Rails is Model-View-Controller web-application framework. Rails uses ActiveRecord database abstraction classes to work with SQL tables. However, sometimes it is more convenient to work with plain SQL queries(without any model classes) for specific database operations.
Rails and SQL queries is a property of Rails and SQL queries respective authors, vendors and developers. You can download Rails and SQL queries for your hardware. If you want to use Rails and SQL queries for other purpose, Please contact the authors, vendors and developers of Rails and SQL queries.