class AddIsHiddenToMessages < ActiveRecord::Migration[5.2] def change add_column :messages, :is_hidden, :boolean, :default => false add_index :messages, :is_hidden end end