百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

model_probe

> 后端框架
开源

轻松实现 ActiveRecord 方案可视化和模型组织

179 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

轻松实现 ActiveRecord 方案可视化和模型组织

ModelProbe

ActiveRecord schema visualization and model organization made easy

Colorized table info for columns, types, nullables, indexes... and the actual DDL used by the database to create the table. All this and more with ModelProbe!

  1. Get a clear picture of your model's underlying schema with beautiful and informative schema introspection.
  2. Generate model class definitions with a well organized, logical structure.
  3. Create sensible text fixture stubs.

Table of Contents

  • Quick Start
  • Supported Databases
  • Videos
  • Screenshots

Quick Start

  1. Add the GEM to your project

    bash
    bundle add model_probe

    ModelProbe auto initializes in the Rails development environment.

  2. Use in a Rails console

    ruby
    # examples for a User model
    User.probe
    User.print_model
    User.print_fixture
  3. Use with Rails (Rake) tasks

    bash
    # examples for a User model
    bin/rails model_probe:probe[User]
    bin/rails model_probe:print_model[User]
    bin/rails model_probe:print_fixture[User]

Supported Databases

  • MySQL
  • PostgreSQL
  • SQLite
  • ...more? contributions welcome ;)

Videos

Screenshots

Introspect your ActiveRecord models to build a deep understanding of the underlying database structure.

Generate a well organized template for your ActiveRecord model's class definition.

Create fixture stubs to use in the test suite.

Contributing

Tests

Test can be ran using the default rake task or individually.

bash
ruby -Ilib test/model_probe_test.rb

Combine with a simple watch program for a simple test runner.

bash
fd --extension rb | entr -c rake

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rubyactiverecordactiverecord-modelsrailsruby-on-rails

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架