Sha256: 04e1fd2f22f631410baada6e25a8aa79c2398d2d6c6d4ec939c688dee19ff624

Contents?: true

Size: 459 Bytes

Versions: 8

Compression:

Stored size: 459 Bytes

Contents

# 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
  alias primary_key_without_unsigned primary_key

  def primary_key(name, type = :primary_key, options = {})
    primary_key_without_unsigned(name, type, options.merge(primary_key: true).reverse_merge(unsigned: true))
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ridgepole-0.6.0.beta3 lib/ridgepole/ext/mysql_awesome.rb
ridgepole-0.6.0.beta2 lib/ridgepole/ext/mysql_awesome.rb
ridgepole-0.6.0.beta lib/ridgepole/ext/mysql_awesome.rb
ridgepole-0.5.3.beta2 lib/ridgepole/ext/mysql_awesome.rb
ridgepole-0.5.3.beta lib/ridgepole/ext/mysql_awesome.rb
ridgepole-0.5.2 lib/ridgepole/ext/mysql_awesome.rb
ridgepole-0.5.2.beta6 lib/ridgepole/ext/mysql_awesome.rb
ridgepole-0.5.2.beta5 lib/ridgepole/ext/mysql_awesome.rb