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.
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).
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.