scenic-views/scenic
Versioned database views for Rails observed · 2026-08-28
Health v2 · maintenance only
63/100
- Activity 90
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4509
- days_rel: n/a
- days_push: 65
- n_releases_24m: 0
Adoption not part of the score
3623 stars · 241 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Scenic is a Ruby gem that adds methods to ActiveRecord::Migration for creating and managing versioned database views in Rails applications. It lets developers define views in SQL files with a convention for versioning that keeps migrations reversible and consistent, shipping with PostgreSQL support and a configurable adapter interface.
Use cases
- manage versioned SQL database views in a Rails app
- create and update Postgres views through Rails migrations
- use database views without switching schema format to SQL
- implement full-text search across multiple models with a SQL view
- build complex reports by encapsulating SQL in views
- keep view definitions in SQL files with syntax highlighting and easy testing
When to choose
- you use Rails with PostgreSQL and want first-class database view support
- you need reversible, versioned migrations for view changes
- you want to express complex queries as composable database views instead of ActiveRecord scopes
When to avoid
- your application does not use Rails or ActiveRecord
- you use MySQL, SQLite, or another database without a third-party Scenic adapter
- you prefer managing views manually outside your migration history
Facets
library · maturity stable
database orm developer-tools databases web-development backend developer-tools ruby rails activerecord database-views postgres sql migrations schema web-server
4 sources
- readme: https://github.com/scenic-views/scenic · fetched 2026-08-28 · 1f91c8cf0245
- homepage: https://thoughtbot.com/blog/announcing-scenic--versioned-database-views-for-rails · fetched 2026-08-29 · b53aa0488d01
- site_page: https://thoughtbot.com/services · fetched 2026-08-29 · 5b152b8c27da
- site_page: https://thoughtbot.com/services/ruby-on-rails-development · fetched 2026-08-29 · 9db22fa0af46
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| scenic-views/scenic | main | 63 |
For agents
markdown · JSON · MCP: product_card(name="scenic-views/scenic")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem