Skip to content

Commit 22991af

Browse files
committed
Update db seeds
1 parent 573daa0 commit 22991af

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

db/seeds/development.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@
77
end
88

99
User.find_or_create_by(
10-
10+
email: Rails.configuration.settings.emails.test_recipient
1111
) do |u|
1212
u.password = "password"
1313
u.password_confirmation = "password"
1414
u.confirmed_at = Time.zone.now
1515
end
1616

1717
ColorScheme.find_or_create_default
18+
19+
START_COUNT_NEWSLETTERS = 5
20+
fill_count = START_COUNT_NEWSLETTERS - Newsletter.count
21+
FactoryBot.create_list(:newsletter, fill_count) if fill_count > 0

0 commit comments

Comments
 (0)