```ruby
Rails.configuration.prisons = []

Dir["config/prisons/*.yml"].each { |file|
  prison = YAML.load_file(file)
  unless Rails.env.production?
    prison['email'] = "pvb.#{prison['nomis_id']}@maildrop.dsd.io"
  end
  Prison.create(prison)
}
```

Send to maildrop in test or based on env
user
```ruby
Rails.configuration.prisons = []

Dir["config/prisons/*.yml"].each { |file|
  prison = YAML.load_file(file)
  if ENV['GSI_SMTP_HOSTNAME'] == 'maildrop.dsd.io' || Rails.env.test?
    prison['email'] = "pvb.#{prison['nomis_id']}@maildrop.dsd.io"
  end
  Prison.create(prison)
}
```
assistant