Schreiben Sie SQL in Ruby auf Schienen
sql = "Select * from ... your sql query here"
records_array = ActiveRecord::Base.connection.execute(sql)
Lioruby
sql = "Select * from ... your sql query here"
records_array = ActiveRecord::Base.connection.execute(sql)