-class AddUserVisible < ActiveRecord::Migration
+class AddUserVisible < ActiveRecord::Migration[5.0]
def self.up
add_column "users", "visible", :boolean, :default => true, :null => false
- User.update_all("visible = 1")
+ User.update_all(:visible => true)
end
def self.down