Sha256: 8d772ad6c586fd063a11751fb0eb79e7f3168992e8d1cd2dc05f6f09529cee43
Contents?: true
Size: 408 Bytes
Versions: 3
Compression:
Stored size: 408 Bytes
Contents
module ActiveRecord 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ar-uuid-0.2.0 | lib/active_record/uuid/schema.rb |
ar-uuid-0.1.2 | lib/active_record/uuid/schema.rb |
ar-uuid-0.1.1 | lib/active_record/uuid/schema.rb |