method

add_column_options!

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: SchemaCreation
add_column_options!(sql, options) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/mysql/schema_creation.rb, line 38
        def add_column_options!(sql, options)
          if charset = options[:charset]
            sql << " CHARACTER SET #{charset}"
          end

          if collation = options[:collation]
            sql << " COLLATE #{collation}"
          end

          add_sql_comment!(super, options[:comment])
        end
Register or log in to add new notes.