Make the first user as admin,user with id =1
This commit is contained in:
parent
f6e60823a7
commit
817861a5e4
3 changed files with 9 additions and 13 deletions
|
|
@ -9,9 +9,6 @@ Role.create(:name => "Participant")
|
|||
Role.create(:name => "Organizer")
|
||||
Role.create(:name => "Admin")
|
||||
|
||||
#For first admin setup
|
||||
User.create(email:"admin@opensuse.org", password:"admin1234", password_confirmation:"admin1234",role_ids:[3],confirmed_at:Time.now)
|
||||
|
||||
qtype_yesno = QuestionType.create(:title => "Yes/No")
|
||||
qtype_single = QuestionType.create(:title => "Single Choice")
|
||||
qtype_multiple = QuestionType.create(:title => "Multiple Choice")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue