From: Tom Hughes Date: Sun, 24 Aug 2008 16:56:34 +0000 (+0000) Subject: Fix migration. X-Git-Tag: live~8216 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/3c85b2ceea7e030f580d3febfad9f2b0c3217303?hp=34189cf761a871f366775843da580121b39b4e25 Fix migration. --- diff --git a/db/migrate/015_add_user_visible.rb b/db/migrate/015_add_user_visible.rb index 3b14aad6b..d870dfffd 100644 --- a/db/migrate/015_add_user_visible.rb +++ b/db/migrate/015_add_user_visible.rb @@ -1,6 +1,6 @@ class AddUserVisible < ActiveRecord::Migration def self.up - add_column "users", "visible", :boolean + add_column "users", "visible", :boolean, :default => true, :null => false User.update_all("visible = 1") end