Sha256: 99fe4659515a14163bffbf667bce36270c5f09d9100e0b9f87c51b3efe2f0876
Contents?: true
Size: 460 Bytes
Versions: 4
Compression:
Stored size: 460 Bytes
Contents
require 'active_record/connection_adapters/abstract/schema_definitions' # XXX: https://github.com/waka/activerecord-mysql-unsigned/blob/v0.3.1/lib/activerecord-mysql-unsigned/active_record/v3/connection_adapters/abstract/schema_definitions.rb#L14 class ActiveRecord::ConnectionAdapters::TableDefinition def primary_key(name, type = :primary_key, options = {}) column(name, type, options.merge(primary_key: true).reverse_merge(unsigned: true)) end end
Version data entries
4 entries across 4 versions & 1 rubygems