mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-27 10:38:50 +01:00
Add Admin class
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
Translation.delete_all
|
||||
Problem.delete_all
|
||||
Admin.delete_all
|
||||
|
||||
for i in 1..10 do
|
||||
translation = Translation.create(
|
||||
@@ -18,4 +19,10 @@ for i in 1..10 do
|
||||
Problem.create(id: i, translation_id: translation.id)
|
||||
end
|
||||
|
||||
Problem.create(id: 11)
|
||||
Problem.create(id: 11)
|
||||
|
||||
Admin.create(
|
||||
email: 'admin@example.com',
|
||||
password: 'password',
|
||||
password_confirmation: 'password'
|
||||
)
|
||||
Reference in New Issue
Block a user