From e2c311a624d0a41e6774e96ec187cf9b3e059b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Sun, 17 Sep 2017 12:15:59 +0200 Subject: [PATCH 1/2] Adds an unverified user to dev seeds Useful if you want to test the verification process. --- db/dev_seeds.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/dev_seeds.rb b/db/dev_seeds.rb index d432930553a..e7f4ebd8ac9 100644 --- a/db/dev_seeds.rb +++ b/db/dev_seeds.rb @@ -91,6 +91,8 @@ def create_user(email, username = Faker::Name.name) poll_officer.create_poll_officer poll_officer.update(residence_verified_at: Time.current, confirmed_phone: Faker::PhoneNumber.phone_number, document_type: "1", verified_at: Time.current, document_number: "2211111111") +create_user('unverified@consul.dev', 'unverified') + level_2 = create_user('leveltwo@consul.dev', 'level 2') level_2.update(residence_verified_at: Time.current, confirmed_phone: Faker::PhoneNumber.phone_number, document_number: "2222222222", document_type: "1") From 69aaa7de12e1628d9782f0ecd578740c024f33d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Sun, 17 Sep 2017 12:16:23 +0200 Subject: [PATCH 2/2] Fixes unintended new line --- db/dev_seeds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/dev_seeds.rb b/db/dev_seeds.rb index e7f4ebd8ac9..1223d94a423 100644 --- a/db/dev_seeds.rb +++ b/db/dev_seeds.rb @@ -504,7 +504,7 @@ def create_user(email, username = Faker::Name.name) end puts " ✅" -puts "Creating proposal notifications" +print "Creating proposal notifications" 100.times do |i| ProposalNotification.create!(title: "Proposal notification title #{i}",