Sha256: 4da43c463f296d9215a9c04ad52a60ef9e4795c9b99880b9061b023a352d74dc

Contents?: true

Size: 234 Bytes

Versions: 7

Compression:

Stored size: 234 Bytes

Contents

class IsParanoidToPaperTrail < ActiveRecord::Migration
  def up
    [Account, Campaign, Contact, Lead, Opportunity, Task].each do |klass|
      klass.where('deleted_at IS NOT NULL').each(&:destroy)
    end
  end

  def down
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 db/migrate/20120216042541_is_paranoid_to_paper_trail.rb
fat_free_crm-0.14.1 db/migrate/20120216042541_is_paranoid_to_paper_trail.rb
fat_free_crm-0.15.0.beta.2 db/migrate/20120216042541_is_paranoid_to_paper_trail.rb
fat_free_crm-0.15.0.beta db/migrate/20120216042541_is_paranoid_to_paper_trail.rb
fat_free_crm-0.14.0 db/migrate/20120216042541_is_paranoid_to_paper_trail.rb
reduced_fat_crm-0.15.0.beta db/migrate/20120216042541_is_paranoid_to_paper_trail.rb
reduced_fat_crm-0.14.0 db/migrate/20120216042541_is_paranoid_to_paper_trail.rb