Class: ActiveRecord::ConnectionAdapters::TableDefinition
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::TableDefinition
- Defined in:
- lib/activerecord/connection_adapters/abstract/schema_definitions.rb
Instance Method Summary collapse
Instance Method Details
#column_with_comment(name, type, options = {}) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/activerecord/connection_adapters/abstract/schema_definitions.rb', line 18 def column_with_comment(name, type, = {}) column_without_comment(name, type, ) column = self[name] column.comment = .fetch(:comment){nil} self end |