Tiny jsonb gotcha in Rails
If you’re using Postgres 9.4+ in your Rails application, you get to create columns in the jsonb
type, which lets you store non-relational data.
To do this, you add the column in a migration as usual, like so:
add_column :users…