I have these line of code in Ruby:
connection = ActiveRecord::Base.connection()
@mastertest = connection.execute("select code_ver, suite, date from mastertest order by date desc limit 30")
So mastertest contains all the rows from my database table.
I want only all rows which have a unique value of code_ver from the results. How do I find that ?
You can try the following: