Class: ActiveRecord::ConnectionAdapters::Redshift::ColumnDefinition
- Inherits:
-
Struct
- Object
- Struct
- ActiveRecord::ConnectionAdapters::Redshift::ColumnDefinition
- Defined in:
- lib/active_record/connection_adapters/redshift/schema_definitions.rb
Overview
All this to add ‘encoding’ to Structure
Instance Attribute Summary collapse
-
#after ⇒ Object
Returns the value of attribute after.
-
#array ⇒ Object
From PostgreSQL to maintain compatability.
-
#auto_increment ⇒ Object
Returns the value of attribute auto_increment.
-
#collation ⇒ Object
Returns the value of attribute collation.
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#default ⇒ Object
Returns the value of attribute default.
-
#encoding ⇒ Object
Returns the value of attribute encoding.
-
#first ⇒ Object
Returns the value of attribute first.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#name ⇒ Object
Returns the value of attribute name.
-
#null ⇒ Object
Returns the value of attribute null.
-
#precision ⇒ Object
Returns the value of attribute precision.
-
#primary_key ⇒ Object
Returns the value of attribute primary_key.
-
#scale ⇒ Object
Returns the value of attribute scale.
-
#sql_type ⇒ Object
Returns the value of attribute sql_type.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#primary_key? ⇒ Boolean
From Abstract to maintain compatability.
Instance Attribute Details
#after ⇒ Object
Returns the value of attribute after
6 7 8 |
# File 'lib/active_record/connection_adapters/redshift/schema_definitions.rb', line 6 def after @after end |
#array ⇒ Object
From PostgreSQL to maintain compatability
8 9 10 |
# File 'lib/active_record/connection_adapters/redshift/schema_definitions.rb', line 8 def array @array end |
#auto_increment ⇒ Object
Returns the value of attribute auto_increment
6 7 8 |
# File 'lib/active_record/connection_adapters/redshift/schema_definitions.rb', line 6 def auto_increment @auto_increment end |
#collation ⇒ Object
Returns the value of attribute collation
6 7 8 |
# File 'lib/active_record/connection_adapters/redshift/schema_definitions.rb', line 6 def collation @collation end |
#comment ⇒ Object
Returns the value of attribute comment
6 7 8 |
# File 'lib/active_record/connection_adapters/redshift/schema_definitions.rb', line 6 def comment @comment end |
#default ⇒ Object
Returns the value of attribute default
6 7 8 |
# File 'lib/active_record/connection_adapters/redshift/schema_definitions.rb', line 6 def default @default end |
#encoding ⇒ Object
Returns the value of attribute encoding
6 7 8 |
# File 'lib/active_record/connection_adapters/redshift/schema_definitions.rb', line 6 def encoding @encoding end |
#first ⇒ Object
Returns the value of attribute first
6 7 8 |
# File 'lib/active_record/connection_adapters/redshift/schema_definitions.rb', line 6 def first @first end |
#limit ⇒ Object
Returns the value of attribute limit
6 7 8 |
# File 'lib/active_record/connection_adapters/redshift/schema_definitions.rb', line 6 def limit @limit end |
#name ⇒ Object
Returns the value of attribute name
6 7 8 |
# File 'lib/active_record/connection_adapters/redshift/schema_definitions.rb', line 6 def name @name end |
#null ⇒ Object
Returns the value of attribute null
6 7 8 |
# File 'lib/active_record/connection_adapters/redshift/schema_definitions.rb', line 6 def null @null end |
#precision ⇒ Object
Returns the value of attribute precision
6 7 8 |
# File 'lib/active_record/connection_adapters/redshift/schema_definitions.rb', line 6 def precision @precision end |
#primary_key ⇒ Object
Returns the value of attribute primary_key
6 7 8 |
# File 'lib/active_record/connection_adapters/redshift/schema_definitions.rb', line 6 def primary_key @primary_key end |
#scale ⇒ Object
Returns the value of attribute scale
6 7 8 |
# File 'lib/active_record/connection_adapters/redshift/schema_definitions.rb', line 6 def scale @scale end |
#sql_type ⇒ Object
Returns the value of attribute sql_type
6 7 8 |
# File 'lib/active_record/connection_adapters/redshift/schema_definitions.rb', line 6 def sql_type @sql_type end |
#type ⇒ Object
Returns the value of attribute type
6 7 8 |
# File 'lib/active_record/connection_adapters/redshift/schema_definitions.rb', line 6 def type @type end |
Instance Method Details
#primary_key? ⇒ Boolean
From Abstract to maintain compatability
11 12 13 |
# File 'lib/active_record/connection_adapters/redshift/schema_definitions.rb', line 11 def primary_key? primary_key || type.to_sym == :primary_key end |