Skip to content

Commit

Permalink
Merge pull request #1878 from deivid-rodriguez/chore/improve_dev_seeds
Browse files Browse the repository at this point in the history
Minor improvements in dev seeds
  • Loading branch information
bertocq authored Sep 20, 2017
2 parents b416d28 + 69aaa7d commit 33c687f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion db/dev_seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -502,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}",
Expand Down

0 comments on commit 33c687f

Please sign in to comment.