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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Five Common Rails Mistakes

77 点作者 vamsee大约 13 年前

4 条评论

cageface大约 13 年前
<i>Without schema constraints, your data will slowly corrode due to bugs in your codebase until you can’t depend on any fields being populated.</i><p>Don't tell that to the NoSQL people.<p><i>use :limit =&#62; N to size your string columns appropriately. Strings default to 255 characters and phone probably doesn’t need to be that big, does it?</i><p>Is this a Rails limitation? A lot of DBs, like Postgres, treat all strings as varchar anyway.
评论 #3934733 未加载
评论 #3940713 未加载
chris_wot大约 13 年前
I'm interested in point 4: use SQL. Is there a way of doing a find that only returns the primary key value and then do a delete only based on this value <i>without</i> using SQL and only via Active Record?
评论 #3935358 未加载
评论 #3935050 未加载
DavidAbrams大约 13 年前
Is Rails as prevalent as it once was, or has something emerged to overtake it for whatever it is that Rails excels at?
cbsmith大约 13 年前
Forgot 6: Using Rails.