app/models/dq_admin/user.rb in dq_admin-0.1.0 vs app/models/dq_admin/user.rb in dq_admin-0.2.0
- old
+ new
@@ -16,9 +16,10 @@
if User.count == 0
password = SecureRandom.hex
User.create(email: User::DEFAULT_USER_EMAIL, username: 'root', password: password, password_confirmation: password)
Rails.logger.info "[DQ] root user email: #{DEFAULT_USER_EMAIL} password: #{password}"
end
+ rescue => e
end
def self.generate_test_users
100.times do |i|
name = rand(36**10).to_s(36)