Skip to content

Commit 9e0ba5d

Browse files
committed
Merge branch 'employees' of github.com:dfelczak/rails-json-api-react into employees
2 parents 0fe64b8 + 0aebc99 commit 9e0ba5d

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)