jeudi 26 mars 2015

Rails 3 scope issue

Can you please point me whats wrong with the below scope. I am writing the scope to get only distinct transaction ids.



scope :unique_transactions, -> (txnid){ where( "DISTINCT Trasaction ID", txnid )}

Aucun commentaire:

Enregistrer un commentaire