Skip to content

Commit

Permalink
Don't seed the test DB
Browse files Browse the repository at this point in the history
  • Loading branch information
eanders committed Dec 6, 2024
1 parent 257adc9 commit 91cee2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ def maintain_report_definitions
end

def ensure_data_sources
# We handle these differently in the test world
return if Rails.env.test?

DataSource.where(name: 'Deidentified Clients', db_identifier: 'Deidentified').first_or_create
DataSource.where(name: 'Imported Clients', db_identifier: 'Imported').first_or_create
DataSource.where(name: 'DND Warehouse', db_identifier: 'hmis_warehouse').first_or_create
Expand Down

0 comments on commit 91cee2c

Please sign in to comment.