阅读背景:

Ruby on Rails:如何使用迁移向现有列添加非空约束?

来源:互联网 

In my Rails (3.2) app, I have a bunch of tables in my database but I forgot to add a few not null constraints. I've googled around but I can't find how to write a migration which adds not null to an existing column.In my Rails (3.2) app, I have a bunch of tables




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: