Module: ActiveRecord::DatabaseComments::Definitions::Table
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/active_record/database_comments/definitions/table.rb
Instance Method Summary collapse
Instance Method Details
#column_with_comment(name, type, options = {}) ⇒ Object
14 15 16 17 18 |
# File 'lib/active_record/database_comments/definitions/table.rb', line 14 def column_with_comment(name, type, = {}) ret_column = column_without_comment(name, type, ) ret_column[name].comment = [:comment] ret_column end |