Sha256: a812d81d15297382af44425bbb4d6605b0f731158ea410bedb7bfd790d054e56

Contents?: true

Size: 465 Bytes

Versions: 1

Compression:

Stored size: 465 Bytes

Contents

require 'colorize'
desc 'list destroyable/deletable dependencies of your ActiveRecord class'
task association_graph: :environment do
  begin
    association_graph = Dread::AssociationGraph.new(ENV['class'])
    association_graph.draw
  rescue Dread::Error => e
    puts e.message.colorize(:red)
  end
end

desc 'list ActiveRecord relationships with missing dependent destroys/deletes..'
task missing_dependables: :environment do
  Dread::MissingGraphs.new.draw
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dread-0.1.0 lib/tasks/dread.rake