Module: ActiveRecord::ConnectionAdapters::TableDefinition::ColumnMetadata
- Included in:
- ActiveRecord::ConnectionAdapters::TableDefinition
- Defined in:
- lib/active_record/column_metadata/write.rb
Instance Method Summary collapse
Instance Method Details
#add_comment(column, comment) ⇒ Object
13 14 15 16 |
# File 'lib/active_record/column_metadata/write.rb', line 13 def add_comment(column, comment) @comments ||= [] @comments << [column, comment] end |
#column_metadata(column, hash) ⇒ Object
9 10 11 |
# File 'lib/active_record/column_metadata/write.rb', line 9 def (column, hash) add_comment(column, hash) end |
#comments ⇒ Object
18 19 20 |
# File 'lib/active_record/column_metadata/write.rb', line 18 def comments @comments end |