开发者

Using 'scope' as a column name in Rails 2.10

开发者 https://www.devze.com 2023-03-12 07:45 出处:网络
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 :) !

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

精彩评论

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