diff options
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 2fae4a7ca..ee1303d41 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -887,7 +887,7 @@ class User < Principal project_ids.map(&:to_i) end - def self.prune(age) + def self.prune(age=30.days) User.where("created_on < ? AND status = ?", Time.now - age, STATUS_REGISTERED).destroy_all end |