Changed 'no badge' check to be more reliable, added rake task for creating superadmin users

This commit is contained in:
MrYummy
2017-06-02 19:31:15 +02:00
parent b99e62b7e7
commit 79ad8b201e
6 changed files with 34 additions and 30 deletions

View File

@@ -42,17 +42,3 @@ deleted_user = User.create!(
dark: false
)
deleted_user.update_attribute(:ign, "Steve")
User.create!(
uuid: "ae795aa86327408e92ab25c8a59f3ba1",
ign: "jomo",
email: "jomo@example.com",
password: "123456789", # high seructity!
password_confirmation: "123456789",
role: Role.get(:superadmin),
header_scroll: false,
utc_time: false,
dark: false
badge: Badge.get(:donor),
confirmed: true
)