Browse Source

Seed data coordinators as DPOs (#1720)

* feat: set data coordinator as dpo in seeds so review apps don't have banners displaying

* feat: revert schema changes
pull/1724/head
natdeanlewissoftwire 2 years ago committed by GitHub
parent
commit
47e4e3afb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      db/seeds.rb

9
db/seeds.rb

@ -175,6 +175,8 @@ unless Rails.env.test?
) do |user| ) do |user|
user.password = "password" user.password = "password"
user.confirmed_at = Time.zone.now user.confirmed_at = Time.zone.now
user.is_dpo = true
create_data_protection_confirmation(user)
end end
support_user = User.find_or_create_by!( support_user = User.find_or_create_by!(
@ -185,11 +187,10 @@ unless Rails.env.test?
) do |user| ) do |user|
user.password = "password" user.password = "password"
user.confirmed_at = Time.zone.now user.confirmed_at = Time.zone.now
create_data_protection_confirmation(user)
end end
create_data_protection_confirmation(support_user) pp "Seeded dummy users"
pp "Seeded 3 dummy users"
end end
if (Rails.env.development? || Rails.env.review?) && SalesLog.count.zero? if (Rails.env.development? || Rails.env.review?) && SalesLog.count.zero?
@ -318,7 +319,7 @@ unless Rails.env.test?
units: 1, units: 1,
mobility_type: "W", mobility_type: "W",
) )
pp "Seeded 3 dummy schemes" pp "Seeded dummy schemes"
end end
if LocalAuthority.count.zero? if LocalAuthority.count.zero?

Loading…
Cancel
Save