Skip to content
Snippets Groups Projects
Commit 012da5a2 authored by pabois's avatar pabois
Browse files

Merge branch 'master' of github.com:noesya/osuny

parents 02e1871f 68d1db31
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