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