github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

dancroak / nurse

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 4
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (2)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (2)
    • v0.0.2
    • v0.0.1
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Nurse cares for invalid ActiveRecord objects. — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

removing File.open_safely experiment 
dancroak (author)
Sun Nov 09 11:05:25 -0800 2008
commit  06e0f7f8fadd0d39ed470f8a7c731b816d7233eb
tree    42e3eeea5315844fc142d5f9ecae46c4e07c409d
parent  893f98992d1af4697ac91c00886fcf80da48f580
nurse /
name age
history
message
file .gitignore Loading commit data...
file LICENSE
file README.textile
file Rakefile Thu Nov 06 12:08:16 -0800 2008 Initial commit to nurse. [dancroak]
file VERSION.yml Thu Nov 06 17:31:14 -0800 2008 Version bump to 0.0.2 [dancroak]
directory db/ Thu Nov 06 15:21:42 -0800 2008 cleaning up invalid_models, adding temporary ex... [dancroak]
directory lib/ Thu Nov 06 18:30:44 -0800 2008 refactoring all protected methods into Nurse::U... [dancroak]
file nurse.gemspec Thu Nov 06 17:31:18 -0800 2008 Regenerated gemspec for version 0.0.2 [dancroak]
directory test/ Sun Nov 09 11:05:25 -0800 2008 removing File.open_safely experiment [dancroak]
README.textile

Nurse

Nurse cares for invalid ActiveRecord objects.

Usage

Create your invalid models file:

script/plugin install http://github.com/thoughtbot/limerick_rake mkdir db/nurse rake db:validate_models > db/nurse/invalid_models.txt

Caution: this could take a long time on a big database.

Separate invalid models into their own files:

nurse = Nurse.new nurse.separate_invalids!

Get invalids for a particular model:

invalids = nurse.invalid_records_for(“Job”)
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server