Class: ActiveRecord::ConnectionAdapters::Cubrid2::Column

Inherits:
ConnectionAdapters::Column
  • Object
show all
Defined in:
lib/active_record/connection_adapters/cubrid2/column.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#auto_increment?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/active_record/connection_adapters/cubrid2/column.rb', line 17

def auto_increment?
  !respond_to?(:extra) && extra == 'auto_increment'
end

#case_sensitive?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/active_record/connection_adapters/cubrid2/column.rb', line 13

def case_sensitive?
  collation && !collation.end_with?('_ci')
end

#unsigned?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/active_record/connection_adapters/cubrid2/column.rb', line 9

def unsigned?
  false
end

#virtual?Boolean

Returns:

  • (Boolean)


21
22
23
24
# File 'lib/active_record/connection_adapters/cubrid2/column.rb', line 21

def virtual?
  # /\b(?:VIRTUAL|STORED|PERSISTENT)\b/.match?(extra)
  false
end