Skip to content

Commit fd00fed

Browse files
committed
[john] - using clean List model in migration.
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)
1 parent c7de640 commit fd00fed

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

db/migrate/20121011064405_migrate_action_taken_rule_page_ids.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
class List < ActiveRecord::Base
2+
end
3+
14
class MigrateActionTakenRulePageIds < ActiveRecord::Migration
25
def up
36
List.find_each(:batch_size => 100) do |list|

0 commit comments

Comments
 (0)