if Rails.env.development?
  # Create test user
  #
  unless User.find_by_email("test@example.com")
    u             = User.new
    u.email       = "test@example.com"
    u.name        = "Test User"
    u.permissions = ["signin"]
    u.save
  end
end

puts "To import the data from redirector, plus Hit data, run this: "
puts "  bundle exec rake import:all"

if Rails.env.development?
  # Create test user
  #
  unless User.find_by_email("test@example.com")
    u             = User.new
    u.email       = "test@example.com"
    u.name        = "Test User"
    u.permissions = ["signin", "admin"]
    u.organisation_slug = 'cabinet-office'
    u.save
  end
end

puts "To import the data from redirector, plus Hit data, run this: "
puts "  bundle exec rake import:all"

Make the dev user an admin and a member of an org
Make the dev user an admin and a member of an org

This means that they will be able to edit anything and will see the "my
organisation" link in the banner header.
