开发者

Using 'scope' as a column name in Rails 2.10

I want to now if I can use 'scope' as a column name safely in Rails 2.开发者_高级运维10 .

PS: if you have a list of "not to use column name table for Rails" it will be cool too :) !

Thanks !


I wouldn't use scope as it is in the list here (in the Other Names Reported to Have Caused Trouble section), it is always safer to rename your column name.

http://wiki.rubyonrails.org/rails/pages/reservedwords

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜