rails/rails — pull request #8206 by kennyj (2012-11-13 16:50:07+00:00)
Title: Fix #7619. 0x prefix must be added when assigning hexadecimal string into bit column in Postgresql, because solving ambiguity.

According to https://github.com/rails/rails/blob/232d2223ebcfe5c9e0425c821f5d30a7d5968512/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb#L49 , hexadecimal data which has '0' and '1' character interpreted as binary data into bit column in PostgreSQL.

I try to fix this issue by behavior changing.

Please see #7619