In punching_bag
github page, it says I can run rake punching_bag:combine
for combining hits.
when I run this rake
I get error below:
SELECT DISTINCT "punches"."punchable_type" FROM "punches" ORDER BY punches.average_time DESC
01 PG::InvalidColumnReference: ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list
01 LINE 1: ...unches"."punchable_type" FROM "punches" ORDER BY punches.av...
01 ^
01 : SELECT DISTINCT "punches"."punchable_type" FROM "punches" ORDER BY punches.average_time DESC
01 rake aborted!
01 ActiveRecord::StatementInvalid: PG::InvalidColumnReference: ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list
01 LINE 1: ...unches"."punchable_type" FROM "punches" ORDER BY punches.av...
01
What is wrong and how can I fix this issue?