Using PostgreSQL and jsonb with Ruby on Rails

PostgreSQL 9.4 introduced jsonb, the binary version for JSON columns. See how you can use it with Ruby on Rails 4.2+.