I'm upgrading a Rails application from 4.2 to 5.x. We are using a firebird database and recently found a new adapter that can be used with Rails 5 as well.
After testing the application most of the stuff is working. But I have a problem with columns that are marked as a char field with the length of 1 - we are using this columns as boolean fields. 'F' means false and 'T' means true.
In our application we query the database for such fields like this:
model.where(inaktiv: [false, nil]
Which results in an sql statement like this:
select * from model where inaktiv in ('f', null)
The problem I have is the lowercase f. I searched in the active record gem where the mapping to string happens but I can't find the place. Where is this done?