Module: ActiveRecord::ConnectionAdapters::ColumnMethods

Included in:
Table, TableDefinition, IBM_DBAdapter::TableDefinition
Defined in:
lib/active_record/connection_adapters/ibm_db_adapter.rb

Defined Under Namespace

Classes: Table, TableDefinition

Instance Method Summary collapse

Instance Method Details

#primary_key(name, type = :primary_key, **options) ⇒ Object



603
604
605
606
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 603

def primary_key(name, type = :primary_key, **options)
  puts_log '16'
  column(name, type, options.merge(primary_key: true))
end