阅读背景:

如何在Rails中使用ActiveRecord更改列?

来源:互联网 

I'm new to ActiveRecord. I realized that I had forgotten to add a default value for a column in one of my tables. I want to create a migration to fix this, but I can't figure out how. Is there an alter_column method that you can call during migrations? If not, how can I do it?I'm new to ActiveRecord. I realized that I had




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

分享到: