Boolean correctness in migrations

This commit is contained in:
Andy Allan 2008-11-08 15:01:14 +00:00
parent 7d786c32ed
commit 061d777266
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
class AddUserVisible < ActiveRecord::Migration
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