lib/customer_finacials.rb 🔗
@@ -59,7 +59,9 @@ class CustomerFinancials
created_at,
amount,
note
- FROM transactions WHERE customer_id = $1;
+ FROM transactions
+ WHERE customer_id = $1
+ ORDER BY created_at;
SQL
def transactions