-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Boolean value 'T' and 'F' #74
Comments
thank you, but i think its not working. in my environment.rb in db: i have a table named cars and a column named running running is has a field type CHAR, size 1 and domain boolean so, if i try
i get the same if i try to save 1 or 'T' if i remove the check in the domain boolean i got the same results.
@rowland can you help me? if i remove the line in environment.rb, its inserting 1. (@car.running = true, 1, 'T') |
i got something new: i set the column size to 3
he saves now 'T' in the column, but it should be a T :( |
there is another big problem: if i insert the T manuell (update cars set running = 'T') in the column and call: i can do something weird like Car.find_by(running: true).running is false without the line in environment.rb and with 1 and 0 and domain smallint its working. |
In my case the link Rowland sad works, but I have to change the line in environment.rb:
Note the three spaces after the letter in 'T ' and 'F '. I really don't know why, but the data was stored this way in the database. |
In our database we use the boolean values 'T' and 'F'.
i need to:
The text was updated successfully, but these errors were encountered: