Skip to content
Snippets Groups Projects
Unverified Commit 71557229 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

fix

parent 14209eb7
No related branches found
No related tags found
Loading
......@@ -8,7 +8,10 @@ namespace :app do
desc 'Fix things'
task fix: :environment do
User.find_each(&:confirm)
User.find_each { |u|
u.confirm
u.update(role: :visitor) if u.role.nil?
}
end
namespace :db do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment