Sha256: e1ef65fa87a0e896f2aa9cab09c182960870fb09f111453743dd66d0b31b0309

Contents?: true

Size: 228 Bytes

Versions: 10

Compression:

Stored size: 228 Bytes

Contents

desc "Explaining what the task does"
task foreign_key_check: :environment do
  ForeignKeyChecker.check.each do |key, results|
    puts key if results.any?
    results.each do |result|
      puts result.message
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
foreign_key_checker-0.5.1 lib/tasks/foreign_key_checker_tasks.rake
foreign_key_checker-0.5.0 lib/tasks/foreign_key_checker_tasks.rake
foreign_key_checker-0.4.1 lib/tasks/foreign_key_checker_tasks.rake
foreign_key_checker-0.4.0 lib/tasks/foreign_key_checker_tasks.rake
foreign_key_checker-0.3.0 lib/tasks/foreign_key_checker_tasks.rake
foreign_key_checker-0.2.2 lib/tasks/foreign_key_checker_tasks.rake
foreign_key_checker-0.2.1 lib/tasks/foreign_key_checker_tasks.rake
foreign_key_checker-0.2.0 lib/tasks/foreign_key_checker_tasks.rake
foreign_key_checker-0.1.1 lib/tasks/foreign_key_checker_tasks.rake
foreign_key_checker-0.1.0 lib/tasks/foreign_key_checker_tasks.rake