Class: ActiveRecord::ConnectionAdapters::PostgreSQLColumn

Inherits:
Column
  • Object
show all
Defined in:
lib/connection_adapters/postgresql_adapter.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#default_specifiedObject

Returns the value of attribute default_specified.



6
7
8
# File 'lib/connection_adapters/postgresql_adapter.rb', line 6

def default_specified
  @default_specified
end

#generatedObject

Returns the value of attribute generated.



6
7
8
# File 'lib/connection_adapters/postgresql_adapter.rb', line 6

def generated
  @generated
end

Instance Method Details

#is_nullable?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/connection_adapters/postgresql_adapter.rb', line 8

def is_nullable?
  @null || @default_specified || @generated
end