storm icon indicating copy to clipboard operation
storm copied to clipboard

Remove default_scope for reordering records

Open bradleyprice opened this issue 6 years ago • 1 comments

Using a default scope to reorder records is not always the best idea, since it's easy to introduce bugs when using .first and .last methods.

This change fixes an issue when trying to fetch the latest ping for a website, using .last, for the retry logic, we were actually fetching the first ping.

bradleyprice avatar Oct 30 '19 23:10 bradleyprice

@bradleyprice, please add a Type label.

proctoru-bot avatar Oct 30 '19 23:10 proctoru-bot