Write SQL in ruby on rails
snippet in sql

Write SQL in ruby on rails

user4694

sql = "Select * from ... your sql query here"
records_array = ActiveRecord::Base.connection.execute(sql)