Skip to content

Commit 0aebc99

Browse files
authored
Merge branch 'master' into employees
2 parents f2ee3ca + f369b8a commit 0aebc99

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

db/seeds.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
end
1414

1515
25.times do |n|
16-
u = User.create!(email: "user#{n}@example.com", password: 'Secret123', confirmed_at: Time.now, tokens: nil)
17-
u.add_role n == 0 ? :admin : :user
16+
User.create!(
17+
email: "user#{n}@example.com",
18+
password: 'Secret123',
19+
confirmed_at: Time.now,
20+
tokens: nil
21+
).add_role n == 0 ? :admin : :user
1822
end

0 commit comments

Comments
 (0)