Case studies · Rails products & SaaS
Irawo: cohorts, one programme run many times
A domain model that lets one programme run for many groups, each with its own dates, price and seats, without duplicating content.
Context
Irawo is a learning platform for professionals in francophone Africa (9,400+ learners, 120+ programmes, 200+ workshops). I built this feature myself, before a second developer joined.
The challenge
A learning programme is offered again and again to different groups. The content stays the same, but each group, or cohort, has its own schedule, price, number of seats and timeline for opening activities.
When content and sessions are tied together, running a programme again means duplicating it or adding conditions everywhere. Enrolment, access control and reporting become hard to maintain.
What I did
I redesigned the domain model to separate reusable programme content from cohorts. A programme keeps its shared content; each cohort carries its own schedule, price, capacity and activity publication dates.
The change went well beyond the database. I updated purchasing, enrolment, access rules, notifications and the learner screens so they all work with cohorts.
How it works
Programme content and cohort details live in separate Rails models, and a learner’s participation is tied to a specific cohort. Access to an activity is checked against the learner’s enrolment and the cohort’s publication schedule. Admin screens and purchase flows were adapted to the new structure, while the learner experience stayed the same.
Result
Several cohorts can share one programme’s content without duplicating it, each with its own schedule, price, capacity and learner experience.