Class: ActiveRecord::ConnectionAdapters::Cubrid2::TableDefinition
- Inherits:
-
TableDefinition
- Object
- TableDefinition
- ActiveRecord::ConnectionAdapters::Cubrid2::TableDefinition
- 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, **) # :nodoc: case type when :primary_key type = :integer [:limit] ||= 8 [:primary_key] = true end super end |