Sha256: 4a0a4e3e5c6bf7dc31250faf8d6e87f37baba761669c4887373b7056c33779d5

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

desc "Check for invalid records in the database"
task :validate_records, [:padding] => [:environment] do |t, args|
  # Load all models
  Rails.application.eager_load!

  # Set padding if not passed in ARGV
  padding = args[:padding] || 30

  # Instantiate the Runner and call #data on it
  ValidData::Runner.new(padding, ActiveRecord::Base).run
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
valid_data-0.0.1 lib/tasks/valid_data.rake