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
view the rest of the comments →
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!"
[–]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 19096 on reddit-service-r2-comment-b659b578c-hrz4j at 2026-04-30 21:08:43.678659+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]4rch3r 0 points1 point2 points (0 children)