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