module ActiveRecord::ConnectionAdapters::Hanaclient::ColumnMethods

Public Instance Methods

primary_key(name, type = :primary_key, **options) click to toggle source
Calls superclass method
# File lib/active_record/connection_adapters/hanaclient/schema_definitions.rb, line 8
def primary_key(name, type = :primary_key, **options)
  options[:auto_increment] = true if [:integer, :bigint].include?(type) && !options.key?(:default)
  super
end