class CreateLists < ActiveRecord::Migration def change create_table :lists, :options => 'DEFAULT CHARSET=utf8' do |t| t.integer :micro_letter_id, :integer, :comment => "微信" # 微信
t.timestamps end
#add_index :lists, [:publish_status, :assigned_user, :team_id, :company_id], name: "user_company_status_index" end end
执行 rake db:migrate,把字段的注释也生成到 mysql 中,这样加了 :comment => "微信"这个参数不管用,请问该怎么做