阅读背景:

如何在Rails迁移中添加检查约束?

来源:互联网 

I need to add a new integer column to an existing table in my Rails app. The column can only have values 1, 2, 3, so I'd like to add a check constraint to the table/column. How do I specify this constraint within a Rails migration?I need to add a new integer column to an existi




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

分享到: