lib/generators/duty_free/install_generator.rb
# MySQL 5.6 utf8mb4 limit is 191 chars for keys used in indexes.
MySQL 5.6 utf8mb4 limit is 191 chars for keys used in indexes.
MySQL 5 . 6 utf8mb4 limit is 191 chars for keys used in indexes .
def item_type_options
      opt = { null: false }
      opt[:limit] = 191 if mysql?
      ", #{opt}"
    end
def item_type_options opt = { null : false } opt [ :limit ] = 191 if mysql? ", #{opt}" end
MySQL 5.6 utf8mb4 limit is 191 chars for keys used in indexes.
MySQL 5 . 6 utf8mb4 limit is 191 chars for keys used in indexes .