Use monkey patching to revert database changes in Rails mailer previews.
Easy step-by-step tutorial on upgrading PostgreSQL using the pg_upgrade tool.
Introduction to thread synchronization using PostgreSQL advisory locks.
Simple way to change your PostgreSQL primary key type in a Rails migration.
Simple nginx setup for a public access to your local web server. It supports SSL and works behind a NAT.
The Rails callbacks after_create_commit, after_update_commit and after_destroy_commit behave in a way you may not expect.