create admin user at first start of server
This commit is contained in:
parent
76e19f717c
commit
574396e03c
|
@ -8,3 +8,6 @@ end
|
||||||
user = User.new uname: uname, email: "#{uname}@rosalinux.ru", password: SecureRandom.base64
|
user = User.new uname: uname, email: "#{uname}@rosalinux.ru", password: SecureRandom.base64
|
||||||
user.confirmed_at, user.role = Time.now.utc, 'system'; user.save
|
user.confirmed_at, user.role = Time.now.utc, 'system'; user.save
|
||||||
end
|
end
|
||||||
|
|
||||||
|
admin = User.new uname: 'admin', email: 'admin@rosalinux.ru', password: 'qwerty'
|
||||||
|
admin.confirmed_at, admin.role = Time.now.utc, 'admin'; admin.save
|
Loading…
Reference in New Issue