Skip to content

Commit

Permalink
[john] - using clean List model in migration.
Browse files Browse the repository at this point in the history
acts_as_paranoid was added to the List model after a migration that uses the model was written operating on a lists table without the deleted_at field (required by paranoia gem)
  • Loading branch information
johnam committed Oct 23, 2013
1 parent c7de640 commit fd00fed
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
class List < ActiveRecord::Base
end

class MigrateActionTakenRulePageIds < ActiveRecord::Migration
def up
List.find_each(:batch_size => 100) do |list|
Expand Down

0 comments on commit fd00fed

Please sign in to comment.