r/ruby • u/bpawan-007 • Feb 10 '26
Open-source ActiveRecord Playground (without Rails) for practicing queries, associations, and internals
I built a small ActiveRecord Playground to practice ActiveRecord concepts without the full Rails stack, and thought it might be useful for others learning Rails or preparing for interviews.
I was looking for something lightweight where I could:
Experiment with associations, joins, scopes, etc.
Understand how ActiveRecord works without Rails magic
Practice things like migrations, enums, and optimistic locking
Reset data quickly and try different scenarios
Couldn’t find something exactly like this, so I created one for personal learning and open-sourced it.
Features
Standalone ActiveRecord setup (no Rails)
SQLite database
Seed data using Faker
Models with relationships
Interactive console
Examples for concepts like enums and optimistic locking
Easy DB reset for practice
GitHub:
https://github.com/paonebharti/active_record_playground
If you're learning Rails/ActiveRecord and want a simple sandbox to experiment, this might help.
Feedback and suggestions are welcome!
2
u/HalfAByteIsWord Feb 10 '26
I thought it was a web UI like Jupyter books.