Skip to content
railsengines.com

Better Structure SQL

Clean database schema dumps for Rails (PostgreSQL, MySQL, SQLite) without external tool dependencies

No ratings yet
Gem
better_structure_sql
Repository
sebyx07/better_structure_sql
License
MIT
Stars
10
Added
August 06, 2026

About

Clean database schema dumps for Rails (PostgreSQL, MySQL, SQLite) without external tool dependencies

Rails' database dump tools (pg_dump, mysqldump, etc.) create noisy structure.sql files with version-specific comments, inconsistent formatting, and metadata that pollutes git diffs.

What you get

  • Clean diffs - Only actual schema changes
  • No external tools - Pure Ruby introspection
  • Multi-database - PostgreSQL, MySQL, SQLite
  • Deterministic - Same input = identical output

Installing it

ruby
# Gemfile
gem "better_structure_sql"

Details

10 stars on GitHub · MIT licensed · maintained by sebyx07. Source: https://github.com/sebyx07/better_structure_sql

Discussion (0)

Sign in to join the discussion.

No comments yet.