Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I have a few ideas, which one you prefer:
- 1)
- return if Rails.env.production?
- 2)
- if Rails.env.production?
- Rails.logger.info("seeds.rb are not available in production environment")
- end
- 3)
- if Rails.env.production?
- raise "seeds.rb are not available in production environment"
- end
- 4) Keep seeds empty (as it's junk data).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement