diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-16 10:30:45 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-16 10:30:45 +0000 |
commit | 57afa5345eea60c47b4fc44e86f32e73a202d860 (patch) | |
tree | e60a1fc76597f4648fff91c80c0abc9be8da18a6 /lib/tasks/migrate_from_mantis.rake | |
parent | d3d62f4ded2a8c8738451e58d81df27a71a6842f (diff) | |
download | redmine-57afa5345eea60c47b4fc44e86f32e73a202d860.tar.gz redmine-57afa5345eea60c47b4fc44e86f32e73a202d860.zip |
Don't pass conditions to #delete_all.
git-svn-id: http://svn.redmine.org/redmine/trunk@15675 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks/migrate_from_mantis.rake')
-rw-r--r-- | lib/tasks/migrate_from_mantis.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/migrate_from_mantis.rake b/lib/tasks/migrate_from_mantis.rake index dba77ef45..acbdd5bbb 100644 --- a/lib/tasks/migrate_from_mantis.rake +++ b/lib/tasks/migrate_from_mantis.rake @@ -237,7 +237,7 @@ task :migrate_from_mantis => :environment do # Users print "Migrating users" - User.delete_all "login <> 'admin'" + User.where("login <> 'admin'").delete_all users_map = {} users_migrated = 0 MantisUser.all.each do |user| |