Class: ActiveRecord::ConnectionAdapters::Cubrid2::TableDefinition

Inherits:
TableDefinition
  • Object
show all
Includes:
ColumnMethods
Defined in:
lib/active_record/connection_adapters/cubrid2/schema_definitions.rb

Instance Method Summary collapse

Instance Method Details

#new_column_definition(name, type, **options) ⇒ Object

:nodoc:



18
19
20
21
22
23
24
25
26
27
# File 'lib/active_record/connection_adapters/cubrid2/schema_definitions.rb', line 18

def new_column_definition(name, type, **options) # :nodoc:
  case type
  when :primary_key
    type = :integer
    options[:limit] ||= 8
    options[:primary_key] = true
  end

  super
end