-class AddVisibleToDiaries < ActiveRecord::Migration
+class AddVisibleToDiaries < ActiveRecord::Migration[4.2]
def self.up
add_column :diary_entries, :visible, :boolean, :null => false, :default => true
add_column :diary_comments, :visible, :boolean, :null => false, :default => true