TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Enforced, Annotated Schema for Ruby Sequel Models

22 点作者 karthikksv超过 9 年前

2 条评论

callmeed超过 9 年前
I use the annotate gem in all my RoR projects. It adds comments to the model files based on the structure of the DB table. I find it very helpful. Haven&#x27;t really thought about taking it a step further and _enforcing_ it with code.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;ctran&#x2F;annotate_models" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ctran&#x2F;annotate_models</a>
评论 #10653785 未加载
spacemanmatt超过 9 年前
As far as I can tell from the README this suffers the same abstraction leak as most ORMs. Relations are not objects no matter how big your hammer is.