Class: XMigra::DeclarativeSupport::Table::ColumnCreationFragment
- Defined in:
- lib/xmigra/declarative_support/table.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
Instance Method Summary collapse
- #creation_sql ⇒ Object
-
#initialize(table, column) ⇒ ColumnCreationFragment
constructor
A new instance of ColumnCreationFragment.
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
#column ⇒ Object (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_sql ⇒ Object
492 493 494 |
# File 'lib/xmigra/declarative_support/table.rb', line 492 def creation_sql @table.column_creation_sql_fragment(@column) end |