Class: ActiveRecord::ConnectionAdapters::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/connection_adapters/ibm_db_adapter.rb

Direct Known Subclasses

IBM_DBColumn

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.binary_to_string(value) ⇒ Object



479
480
481
482
483
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 479

def self.binary_to_string(value)
  puts_log 'binary_to_string'
  # Returns a string removing the eventual BLOB scalar function
  value.to_s.gsub(/"SYSIBM"."BLOB"\('(.*)'\)/i, '\1')
end

Instance Method Details

#auto_increment?Boolean Also known as: auto_incremented_by_db?

Returns:

  • (Boolean)


490
491
492
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 490

def auto_increment?
  true
end