acts_as_sequenced works on save event


On Mon, Nov 4, 2013 at 4:59 PM, john irving <notifications@github.com>wrote:

> In lib/tasks/upgrade_tasks.rake:
>
> > @@ -1,4 +1,18 @@
> >  namespace :upgrade_tasks do
> > +  task :'2013-10-add-discussion-item-number' => :environment do
> > +    ActiveRecord::Base.record_timestamps = false
> > +    begin
> > +      Discussion.find_each do |d|
> > +        d.items.order('created_at asc').each do |event|
> > +          event.save
>
> [learning question] : interested to understand why saving after an order
> is going to do anything
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/loomio/loomio/pull/1146/files#r7393816>
> .
>