我的 migration 文件如下:
class CreateNotificationSendStatistics < ActiveRecord::Migration
  def change
    create_table :notification_send_statistics do |t|
      t.integer :send_id
      t.integer :uid
      t.string :platform
      t.timestamps null: false
    end
    add_index "notification_send_statistics", ["send_id", "platform"], name: "by_send_id_and_platform", using: :btree
  end
end
Mysql2::Error: Specified key was too long; max key length is 767 bytes: CREATE  INDEX by_send_id_and_platform USING btree ON notification_send_statistics (send_id, platform)
求解
 搜了一下说是字符集的问题?好奇挂怎么就引起字符集问题了呢