Rails Rescue Checklist
Rails Rescue Checklist
Strategic Planning
Consult with client on pain points Set expectations Keep track of work to be done
http://railsrescuebook.com
Database Rescues
Isolate seed data Refactor procedural migrations Collapse migrations Check for database mismatch
Testing Rescues
Check the test coverage Find out if the tests still run Get rid of scaolded tests Delete completely muddled tests Comment out failing but salvageable tests Choose and install your testing tools Test new code as it's written Add acceptance tests Extend test coverage
Refactoring Rescues
Upgrade to current Rails, but cautiously Locate fat controller methods Move excess controller code to models Move to RESTful controllers Extract subsidiary models Move model code to modules Factor out raw SQL in models Remove SQL from views Extract partials from views Extract helpers from views Evaluate and replace plugins as needed
Performance Rescues
Test or analyze to locate problems Run Google Page Speed to locate slow pages Implement caching: page, action, fragment Use memcached to avoid excess database hits Eliminate N+1 query issues with eager loading Add missing indices