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

active_record_doctor

> 后端框架
开源

在问题影响生产之前就找出数据库问题。

1.9K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

在问题影响生产之前就找出数据库问题。

Active Record Doctor

Active Record Doctor 可帮助保持数据库的良好状态。目前,它 可以检测到:

  • 多余的索引 - active_record_doctor:extraneous_indexes * 未索引的 deleted_at 列 - [active_record_doctor:unindexed_deleted_at](#检测未索引的 deleted_at 列) * 缺少外键约束 - active_record_doctor:missing_foreign_keys * 引用未定义表的模型 - active_record_doctor:undefined_table_references * 不受唯一索引支持的唯一性验证 - active_record_doctor:missing_unique_indexes * 缺少非 NULL 约束 - [active_record_doctor:missing_non_null_constraint](#检测缺少非 NULL 约束) * 缺少存在性验证 - active_record_doctor:missing_presence_validation * 在布尔列上不正确的存在性验证 - active_record_doctor:incorrect_boolean_presence_validation * 模型长度验证与数据库验证约束不匹配 - active_record_doctor:incorrect_length_validation * 关联上的 dependent 值不正确 - [active_record_doctor:incorrect_dependent_option](#检测关联上的 dependent 值不正确) * 主键具有短整型 - active_record_doctor:short_primary_key_type * 外键类型不匹配 - active_record_doctor:mismatched_foreign_key_type * 表没有主键 - active_record_doctor:table_without_primary_key * 表没有时间戳 - active_record_doctor:table_without_timestamps

它还可以:

Issues· 0 开放

查看全部 Issues在 GitHub 打开

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

> 标签

Rubyactiverecorddatabaseperformancerails

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

> 工具信息

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

> 相关工具

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