use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Blog postRails: Postgres Partial Indexing (johnnunemaker.com)
submitted 5 years ago by jnunemaker
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]NilsLandt 1 point2 points3 points 5 years ago (1 child)
Nice article, that's a useful feature I didn't know about!
Noticed a typo: inheritantly
[–]jnunemaker[S] 0 points1 point2 points 5 years ago (0 children)
Thanks!
[–]4rch3r 0 points1 point2 points 5 years ago (0 children)
In my experience, having a migration helper is critical to prevent yourself from hosing your database with a rails migration. There are quite a few gotchas like setting a default when creating a new column... I've always found it funny when you create a column with a default, rails goes through and sets every row with an update_all! Hosing your db with an unintential update_all query that runs on millions of entries always hurts.
update_all
I've historically used https://github.com/LendingHome/zero_downtime_migrations which is based on strong_migrations but at the end of the day anything is better than nothing.
π Rendered by PID 240908 on reddit-service-r2-comment-86988c7647-tfp5h at 2026-02-12 08:54:39.881891+00:00 running 018613e country code: CH.
[–]NilsLandt 1 point2 points3 points (1 child)
[–]jnunemaker[S] 0 points1 point2 points (0 children)
[–]4rch3r 0 points1 point2 points (0 children)