class AddUserToInforms < ActiveRecord::Migration[5.2] def change add_reference :informs, :user, index: true, comment: "公告发布者" end end