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

Commit 31ff9ad

Browse files
committed
Allow seeds.rb to run in production.
1 parent 33d9fb7 commit 31ff9ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

db/seeds.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
puts "Rails environment is test"
1616
end
1717

18+
# These safeguards are disabled because the data is static, so the DB can be
19+
# safely deleted. Don't do this at home, kids.
20+
DatabaseCleaner.allow_production = true
21+
DatabaseCleaner.allow_remote_database_url = true
22+
1823
# Make sure the DB is cleaned before seeding.
1924
DatabaseCleaner.strategy = :truncation
2025
DatabaseCleaner.clean

0 commit comments

Comments
 (0)