阅读背景:

如何在Rails迁移中将可空列更改为不可空列?

来源:互联网 

I created a date column in a previous migration and set it to be nullable. Now I want to change it to be not nullable. How do I go about doing this assuming there are null rows in that database? I'm ok with setting those columns to Time.now if they're currently null.I created a date column in a previous migration




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

分享到: