Commit f57df53b275317797f6f1a15395175eb48021f13

Authored by Daniela Feitosa
1 parent 92682a88

Added migration to fix broken records

(ActionItem1874)
db/migrate/20110222211802_remove_action_tracker_records_with_nil_users.rb 0 → 100644
... ... @@ -0,0 +1,10 @@
  1 +class RemoveActionTrackerRecordsWithNilUsers < ActiveRecord::Migration
  2 + # This migration is a copy of 20110127174236_remove_action_tracker_record_with_nil_users.rb
  3 + def self.up
  4 + ActionTracker::Record.all.map {|record| record.destroy if record.user.nil?}
  5 + end
  6 +
  7 + def self.down
  8 + say "this migration can't be reverted"
  9 + end
  10 +end
... ...