class AddColumnToPoll < ActiveRecord::Migration[5.2] # 问卷是否实名 def change add_column :polls, :un_anonymous, :boolean, :default => 0 end end