Sha256: 8a51596594bdd37fc6c16a85d9feafb9aa51b921c784eb41186335938cf73d91
Contents?: true
Size: 411 Bytes
Versions: 3
Compression:
Stored size: 411 Bytes
Contents
module ActiveRecord module ConnectionAdapters module MySQL module ColumnMethods def uuid(*args, **options) # http://dba.stackexchange.com/questions/904/mysql-data-type-for-128-bit-integers # http://dev.mysql.com/doc/refman/5.7/en/binary-varbinary.html args.each { |name| column(name, :binary, options.merge(limit: 16)) } end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems