Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. I have a few ideas, which one you prefer:
  2.  
  3. 1)
  4. return if Rails.env.production?
  5.  
  6. 2)
  7. if Rails.env.production?
  8. Rails.logger.info("seeds.rb are not available in production environment")
  9. end
  10.  
  11. 3)
  12.  
  13. if Rails.env.production?
  14. raise "seeds.rb are not available in production environment"
  15. end
  16.  
  17. 4) Keep seeds empty (as it's junk data).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement