Class: Arc::DataStores::ObjectDefinitions::PostgresColumn

Inherits:
Column
  • Object
show all
Defined in:
lib/arc/data_stores/postgres/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



61
62
63
64
65
# File 'lib/arc/data_stores/postgres/object_definitions.rb', line 61

def type
  return :varchar if @stype =~ /character varying/
  return :time if @stype =~ /time/
  @stype.to_sym
end