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.
501 502 503 504 |
# File 'lib/xmigra/declarative_support/table.rb', line 501 def initialize(table, column) @table = table @column = column end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
506 507 508 |
# File 'lib/xmigra/declarative_support/table.rb', line 506 def column @column end |
Instance Method Details
#creation_sql ⇒ Object
508 509 510 |
# File 'lib/xmigra/declarative_support/table.rb', line 508 def creation_sql @table.column_creation_sql_fragment(@column) end |