rails how to write sql request 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)