X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/34189cf761a871f366775843da580121b39b4e25..09c5740b5bb94c75a5c8c83cdbb80ae7b5ccbdf4:/db/migrate/015_add_user_visible.rb?ds=sidebyside diff --git a/db/migrate/015_add_user_visible.rb b/db/migrate/015_add_user_visible.rb index 3b14aad6b..869f24c37 100644 --- a/db/migrate/015_add_user_visible.rb +++ b/db/migrate/015_add_user_visible.rb @@ -1,7 +1,7 @@ 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