]> source.dussan.org Git - redmine.git/commitdiff
Don't pass conditions to #destroy_all.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 16 Jul 2016 10:31:56 +0000 (10:31 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 16 Jul 2016 10:31:56 +0000 (10:31 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@15676 e93f8b46-1217-0410-a6f0-8f06a7374b81

db/migrate/062_insert_builtin_roles.rb

index 070d9285f3dcae4d7b2c0e3ddf999b560b575955..ae3a706e2c0c72ae1340e5797289c68268f63841 100644 (file)
@@ -11,6 +11,6 @@ class InsertBuiltinRoles < ActiveRecord::Migration
   end
 
   def self.down
-    Role.destroy_all 'builtin <> 0'
+    Role.where('builtin <> 0').destroy_all
   end
 end