See complete guide in my blogpost: Store collections in JSONB field
You need ruby 2.6.1 and PostgreSQL 11 installed. Older versions should work too but you'll have to update the Gemfile
and .ruby-version
files.
- clone this repo
- create the database with sample data:
bundle exec rails db:setup
- start server
bundle exec rails s
- browse to localhost:3000