diff options
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/type/binary.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/type/binary.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/type/binary.rb b/activerecord/lib/active_record/connection_adapters/type/binary.rb new file mode 100644 index 0000000000..60afe44de1 --- /dev/null +++ b/activerecord/lib/active_record/connection_adapters/type/binary.rb @@ -0,0 +1,19 @@ +module ActiveRecord + module ConnectionAdapters + module Type + class Binary < Value + def type + :binary + end + + def binary? + true + end + + def klass + ::String + end + end + end + end +end |