1 class AddSenderVisibleToMessage < ActiveRecord::Migration[5.0]
3 rename_column :messages, :visible, :to_user_visible
4 add_column :messages, :from_user_visible, :boolean, :default => true, :null => false
8 remove_column :messages, :from_user_visible
9 rename_column :messages, :to_user_visible, :visible