Sha256: ca401fb2ebbbd4f33ad2d7abfe042710fbd51ff182e71ef0e3374a9264b3c1f6
Contents?: true
Size: 433 Bytes
Versions: 2
Compression:
Stored size: 433 Bytes
Contents
# frozen_string_literal: true module AR module UUID module Schema def create_table(table_name, options = {}, &block) options[:id] = :uuid unless options.key?(:id) super(table_name, **options, &block) end def add_reference(table_name, ref_name, options = {}) options[:type] = :uuid unless options.key?(:type) super(table_name, ref_name, **options) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ar-uuid-0.2.3 | lib/ar/uuid/schema.rb |
ar-uuid-0.2.2 | lib/ar/uuid/schema.rb |