Sha256: 9c260744a1075344df8827a2be48cefcf636aa8777fb0b6bc4da37cbca731c6c

Contents?: true

Size: 304 Bytes

Versions: 13

Compression:

Stored size: 304 Bytes

Contents

namespace :db do
  desc "Validate all models in the database"
  task :validate => :environment do
    ActiveRecord::Validate.all
  end

  namespace :validate do
    desc "Purge all invalid models form the database"
    task :purge => :environment do
      ActiveRecord::Validate.purge
    end
  end

end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
vex-0.6.2 tasks/validate_db.rake
vex-0.4.4 tasks/validate_db.rake
vex-0.4.2 tasks/validate_db.rake
mdown_handler-0.1 tasks/validate_db.rake
vex-0.3.3 tasks/validate_db.rake
vex-0.2.9 tasks/validate_db.rake
vex-0.2.8 tasks/validate_db.rake
vex-0.2.7 tasks/validate_db.rake
vex-0.2.6 tasks/validate_db.rake
vex-0.2.5 tasks/validate_db.rake
vex-0.2.2 tasks/validate_db.rake
vex-0.2.1 tasks/validate_db.rake
vex-0.2 tasks/validate_db.rake