Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

Commit

Permalink
Allow seeds.rb to run in production.
Browse files Browse the repository at this point in the history
  • Loading branch information
connorshea committed Apr 26, 2018
1 parent 33d9fb7 commit 31ff9ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
puts "Rails environment is test"
end

# These safeguards are disabled because the data is static, so the DB can be
# safely deleted. Don't do this at home, kids.
DatabaseCleaner.allow_production = true
DatabaseCleaner.allow_remote_database_url = true

# Make sure the DB is cleaned before seeding.
DatabaseCleaner.strategy = :truncation
DatabaseCleaner.clean
Expand Down

0 comments on commit 31ff9ad

Please sign in to comment.