Class: ActiveRecord::ConnectionAdapters::Redshift::TableDefinition

Inherits:
PostgreSQL::TableDefinition
  • Object
show all
Defined in:
lib/active_record/connection_adapters/redshift/schema_definitions.rb

Instance Method Summary collapse

Instance Method Details

#new_column_definition(name, type, options) ⇒ Object

:nodoc:



10
11
12
13
14
15
16
# File 'lib/active_record/connection_adapters/redshift/schema_definitions.rb', line 10

def new_column_definition(name, type, options) # :nodoc:
  column = super
  column.distkey = options[:distkey]
  column.sortkey = options[:sortkey]
  column.encode = options[:encode]
  column
end