Class: XMigra::DeclarativeSupport::Table::ColumnCreationFragment

Inherits:
Object
  • Object
show all
Defined in:
lib/xmigra/declarative_support/table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table, column) ⇒ ColumnCreationFragment

Returns a new instance of ColumnCreationFragment.



485
486
487
488
# File 'lib/xmigra/declarative_support/table.rb', line 485

def initialize(table, column)
  @table = table
  @column = column
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



490
491
492
# File 'lib/xmigra/declarative_support/table.rb', line 490

def column
  @column
end

Instance Method Details

#creation_sqlObject



492
493
494
# File 'lib/xmigra/declarative_support/table.rb', line 492

def creation_sql
  @table.column_creation_sql_fragment(@column)
end