summaryrefslogtreecommitdiffstats
path: root/db/migrate/062_insert_builtin_roles.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-16 10:31:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-16 10:31:56 +0000
commit9c698a7a1efd5756eb6f9eda182d11974cc33924 (patch)
tree3be6901a12cead860a041d8385d14bab9fc257ec /db/migrate/062_insert_builtin_roles.rb
parent57afa5345eea60c47b4fc44e86f32e73a202d860 (diff)
downloadredmine-9c698a7a1efd5756eb6f9eda182d11974cc33924.tar.gz
redmine-9c698a7a1efd5756eb6f9eda182d11974cc33924.zip
Don't pass conditions to #destroy_all.
git-svn-id: http://svn.redmine.org/redmine/trunk@15676 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/062_insert_builtin_roles.rb')
-rw-r--r--db/migrate/062_insert_builtin_roles.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/062_insert_builtin_roles.rb b/db/migrate/062_insert_builtin_roles.rb
index 070d9285f..ae3a706e2 100644
--- a/db/migrate/062_insert_builtin_roles.rb
+++ b/db/migrate/062_insert_builtin_roles.rb
@@ -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