Refactor user to admin and api user

This commit is contained in:
Martin Lensment 2015-02-13 16:17:06 +02:00
parent f3215680d5
commit 037cb57e00
34 changed files with 551 additions and 551 deletions

View file

@ -31,7 +31,7 @@ ApiUser.where(
registrar: registrar2
).first_or_create!
User.where(
AdminUser.where(
username: 'user1',
password: 'test1',
email: 'user1@example.ee',
@ -39,7 +39,7 @@ User.where(
country_code: 'EE'
).first_or_create!
User.where(
AdminUser.where(
username: 'user2',
password: 'test2',
email: 'user2@example.ee',
@ -47,7 +47,7 @@ User.where(
country_code: 'EE'
).first_or_create!
User.where(
AdminUser.where(
username: 'user3',
password: 'test3',
email: 'user3@example.ee',
@ -55,4 +55,4 @@ User.where(
country_code: 'EE'
).first_or_create!
User.update_all(roles: ['admin'])
AdminUser.update_all(roles: ['admin'])