Class: SQL::Table
- Inherits:
-
Object
- Object
- SQL::Table
- Defined in:
- lib/dm-migrations/sql/table.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#columns ⇒ Object
Returns the value of attribute columns.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#columns ⇒ Object
Returns the value of attribute columns.
5 6 7 |
# File 'lib/dm-migrations/sql/table.rb', line 5 def columns @columns end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/dm-migrations/sql/table.rb', line 5 def name @name end |
Instance Method Details
#column(column_name) ⇒ Object
11 12 13 |
# File 'lib/dm-migrations/sql/table.rb', line 11 def column(column_name) @columns.select { |c| c.name == column_name.to_s }.first end |
#to_s ⇒ Object
7 8 9 |
# File 'lib/dm-migrations/sql/table.rb', line 7 def to_s name end |