what datatype to use when I want to do bit work in Rails?
I want to create a security 开发者_如何转开发field in the column, which will be used to do bit 'banging'
what data type should I use in my migration?
Rails doesn't have any special support for that.
You should use integer
, may be with :limit => 8
精彩评论