Boolean values with Oracle?

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

On 08/02/06, Chris [email protected] 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).