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

fix

parent af87e62f
No related branches found
No related tags found
No related merge requests found
......@@ -8,9 +8,12 @@ namespace :app do
desc 'Fix things'
task fix: :environment do
language = Language.first
User.find_each { |u|
u.confirm
u.update(role: :visitor) if u.role.nil?
u.role ||= :visitor
u.language ||= language
u.save
}
end
......
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