Crushing It With Rake Tasks
summary
Shows concrete Rake recipes: runs bundle exec rake db:migrate and demonstrates db:migrate:redo and rollback behavior, when editing migrations is safe, and when to drop create remigrate. Uses first_or_create for idempotent seeds, builds a CSV importer as db:seed:import_airports that converts empty strings to NULL and avoids 8,000 lookups, adds log:clear, notes and routes inspection, a db:streamlined generator task, and a Heroku pg backup download + pg_restore workflow that actually works while warning about sensitive data.
AI-written summary · about
chapters (8)
- 0:00Start
- 0:25Barrett Clark
- 13:19bundle exec rake log clear
- 14:16bundle exec rake notes
- 17:27bundle exec rake rails update
- 23:59Streamlining Tedium
- 28:15Standard Security Warning
- 29:15DATA VISUALIZATION TOOLKIT
related talks
31mTricks and treats for new developers
36mUp And Down Again: A Migration's Tale
40mTricks That Rails Didn't Tell You About
40mrails db:migrate:safely
42mTen Things You Didn't Know Rails Could Do
08mFrom a spreadsheet to a Rails app in 5 minutes
37mDon't touch that!
42mPowerful Rails Features You Might Not Know
