Module: ActiveRecord::DatabaseComments::Adapters::MysqlColumn

Extended by:
ActiveSupport::Concern
Defined in:
lib/active_record/database_comments/adapters/mysql_adapter.rb

Instance Method Summary collapse

Instance Method Details

#initialize_with_comment(name, default, sql_type = nil, null = true, collation = nil, comment = nil) ⇒ Object



16
17
18
19
# File 'lib/active_record/database_comments/adapters/mysql_adapter.rb', line 16

def initialize_with_comment(name, default, sql_type = nil, null = true, collation = nil, comment = nil)
  initialize_without_comment(name, default, sql_type, null, collation)
  @comment = comment if comment.present?
end