Files
danbooru/script/fixes/004.rb
2019-12-22 21:23:37 -06:00

8 lines
237 B
Ruby
Executable File

#!/usr/bin/env ruby
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'config', 'environment'))
User.find_each do |user|
user.update_column(:bcrypt_password_hash, BCrypt::Password.create(user.password_hash))
end