Module: SchemaComments::ConnectionAdapters::TableDefinition
- Defined in:
- lib/schema_comments/connection_adapters.rb
Instance Attribute Summary collapse
-
#comment ⇒ Object
Returns the value of attribute comment.
Instance Method Summary collapse
Instance Attribute Details
#comment ⇒ Object
Returns the value of attribute comment.
14 15 16 |
# File 'lib/schema_comments/connection_adapters.rb', line 14 def comment @comment end |
Instance Method Details
#column(name, type, options = {}) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/schema_comments/connection_adapters.rb', line 16 def column(name, type, = {}) result = super(name, type, ) column = self[name] column.comment = [:comment] result end |