Class: Arc::DataStores::ObjectDefinitions::SqliteColumn

Inherits:
Column
  • Object
show all
Defined in:
lib/arc/data_stores/sqlite/object_definitions.rb

Instance Attribute Summary

Attributes inherited from Column

#default, #name

Instance Method Summary collapse

Methods inherited from Column

#allows_null?, #initialize, #pk?

Constructor Details

This class inherits a constructor from Arc::DataStores::ObjectDefinitions::Column

Instance Method Details

#typeObject



44
45
46
47
# File 'lib/arc/data_stores/sqlite/object_definitions.rb', line 44

def type
  #simplify the type expression to remove length and precision
  @type ||= @stype.downcase.gsub(/\([\d,]*\)/, '').to_sym
end