Skip to content

Commit cb07d28

Browse files
committed
Update seeds
1 parent c761bf8 commit cb07d28

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

db/seeds.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
User.create!(name: "Example User",
33
44
password: "foobar",
5-
password_confirmation: "foobar")
5+
password_confirmation: "foobar",
6+
admin: true,
7+
activated: true,
8+
activated_at: Time.zone.now)
69

710
# Generate a bunch of additional users.
811
99.times do |n|
@@ -12,5 +15,7 @@
1215
User.create!(name: name,
1316
email: email,
1417
password: password,
15-
password_confirmation: password)
18+
password_confirmation: password,
19+
activated: true,
20+
activated_at: Time.zone.now)
1621
end

0 commit comments

Comments
 (0)