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