Oracle has no boolean value type, so how do i treat fields as being boolean in activerecord?? I know i could rewrite the accessor methods in the model class to return the correct boolean value, but this seems too tedious and wrong. Does anyone know a better way?? Any help is greatly appreciated, Thanks, Chris -- Posted via http://www.ruby-forum.com/.
On 08/02/06, Chris <evilgeenius@gmail.com> wrote:> Oracle has no boolean value type, so how do i treat fields as being > boolean in activerecord?? I know i could rewrite the accessor methods in > the model class to return the correct boolean value, but this seems too > tedious and wrong. > > Does anyone know a better way??ActiveRecord does the mapping automatically for you. Just make sure to create your ''boolean'' column as NUMBER(1). -- ?ukasz Piestrzeniewicz