~singpolyma/sgx-jmp

0fd3bd944a037f0eecf2731c617e5b116ca5554d — Christopher Vollick 8 months ago adef6c1
Order Transactions by Date

In my testing the natural order just happened to be the date order
because I had so little data.

But in the real world we should probably be more explicit!
1 files changed, 3 insertions(+), 1 deletions(-)

M lib/customer_finacials.rb
M lib/customer_finacials.rb => lib/customer_finacials.rb +3 -1
@@ 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