Skip to content

paonebharti/active_record_playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ActiveRecord Playground

A minimal environment to practice ActiveRecord queries, associations and performance — without Rails magic.

Why this exists

ActiveRecord is often learned by memorizing methods, not by understanding SQL behavior. This playground encourages experimentation and observation.

Features

  • ActiveRecord without Rails
  • SQLite database
  • Faker-seeded data
  • Interactive console
  • Progressive query exercises

Setup

ruby scripts/setup.rb

Start the console

ruby playground.rb

Exercises

Exercises are organized by difficulty:

  • exercises/level_1_basic_queries.md
  • exercises/level_2_associations.md
  • exercises/level_3_joins_includes.md
  • exercises/level_4_aggregations.md
  • exercises/level_5_performance.md

Open a level file and run queries in the console.

Reset data

ruby scripts/reset_db.rb

About

A lightweight ActiveRecord playground for practicing queries, understanding SQL behavior, and exploring performance patterns — without Rails magic.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages