Scenic

screenshot of Scenic
rails

Versioned database views for Rails

Overview

Scenic is a gem that adds methods to ActiveRecord::Migration in Rails to create and manage database views. It allows users to harness the power of SQL views without the need to switch their schema format to SQL. Scenic provides a clean and efficient way to version views, ensuring consistent migration history, and avoiding duplication of SQL strings across migrations.

Features

  • Convention for Versioning Views: Scenic provides a convention for versioning views, ensuring consistent and reversible migration history.
  • Full SQL Syntax Highlighting: Define the structure of views in a SQL file for full SQL syntax highlighting in the editor and easy testing in the database console during development.
  • Support for PostgreSQL: Scenic ships with support for PostgreSQL and has a configurable adapter for minimal interface.

Summary

Scenic is a valuable gem for managing database views in Rails applications. Its features include a versioning convention, SQL syntax highlighting, and support for PostgreSQL. Users can easily install Scenic by adding a gem to their Gemfile and running bundle install. Overall, Scenic simplifies the process of creating and managing database views, making it a useful tool for Rails developers.

rails
Ruby on Rails

Ruby on Rails, often referred to as Rails, is an open-source web application framework written in Ruby. Known for its convention over configuration and don't repeat yourself (DRY) principles, Rails simplifies and accelerates the development of database-backed web applications.

fullstack
Fullstack

A fullstack boilerplate provides a starter application that includes both frontend and backend. It should include database, auth, payments, user roles and other backend services to build a fully featured saas or webapps.