While ActiveRecord is a behemoth encompassing a large feature-set, some WTFs pop up every now and then. One such WTF is the lack of support for default values for binary columns in SQLite.
Let’s create a string column in a model that uses a SQLite database and add a default value to it.
Let’s do the same with a binary column.
This creates an inconsistency in the behavior of Sqlite with Rails.
Fortunately, this PR adds support for reading a binary column’s default values before the its data is read from the database.