Write SQL in ruby on rails code example
Example: Write SQL in ruby on rails
sql = "Select * from ... your sql query here"
records_array = ActiveRecord::Base.connection.execute(sql)
sql = "Select * from ... your sql query here"
records_array = ActiveRecord::Base.connection.execute(sql)