Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

ordering has been renamed to sequence #721

Open
jwjwyoung opened this issue Apr 16, 2020 · 0 comments
Open

ordering has been renamed to sequence #721

jwjwyoung opened this issue Apr 16, 2020 · 0 comments

Comments

@jwjwyoung
Copy link

jwjwyoung commented Apr 16, 2020

scope :checkin_destinations, -> { includes(:group_times).where('group_times.checkin_time_id is not null').order('group_times.ordering') }

It seems we should order it by group_times.sequence since group_times.ordering has been renamed to sequence.

The rename code can be found:

t.rename :ordering, :sequence
in the migration file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant