Generate Mermaid Entity Relationship Diagrams from your Ruby on Rails application's database schema.
Rails Mermaid ERD is a Ruby gem that automatically generates Mermaid Entity Relationship Diagrams (ERD) from a Ruby on Rails application's database schema. It solves the problem of manually creating and maintaining database diagrams by providing an automated, up-to-date visualization of models and their relationships. The tool outputs a single HTML file that can be easily shared or embedded in documentation.
Ruby on Rails developers and teams who need to visualize, document, or communicate their application's database structure, particularly those working on projects with complex data models or requiring up-to-date schema documentation.
Developers choose Rails Mermaid ERD for its simplicity, automation, and portability—it generates shareable, self-contained diagrams with minimal configuration, integrates seamlessly into Rails workflows, and eliminates the need for manual diagramming tools or external services.
Generate Mermaid ERD from your Ruby on Rails application.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Analyzes ActiveRecord models and associations to generate diagrams automatically, as stated in the Key Features, eliminating manual diagramming effort.
Generates a single, self-contained HTML file that can be shared without a Rails environment, making it ideal for documentation and team collaboration via web servers or file sharing.
Supports copying diagrams in Markdown format for GitHub documentation and saving as images for environments without Mermaid, providing versatile sharing methods.
Can be run as a Rake task and integrated into CI pipelines, fitting into standard Rails workflows for automated, up-to-date diagram generation.
The README shows only basic configuration options like result_path, lacking features for filtering models, customizing relationships, or adjusting diagram layout beyond Mermaid's defaults.
Diagrams are generated statically and must be re-run for schema changes, offering no real-time updates or interactive editing, which can be limiting for dynamic databases.
Inherits Mermaid's limitations in rendering complex ERDs or custom styles; if Mermaid has bugs or lacks features, the gem cannot overcome them without manual intervention.