active_record: Type cast booleans and durations for string columns.
Merge pull request #16069 from dylanahsmith/mysql-quote-bool

active_record: Type cast booleans and durations for string columns.