module SchemaComments::ConnectionAdapters::TableDefinition

Attributes

comment[RW]

Public Instance Methods

column(name, type, options = {}) click to toggle source
Calls superclass method
# File lib/schema_comments/connection_adapters.rb, line 11
def column(name, type, options = {})
  result = super(name, type, options)
  column = self[name]
  column.comment = options[:comment]
  result
end