How can I split seeds.rb to populated different data in development vs. production?
It looks like I could do this by specifying a constant in the environment files, but is 开发者_运维百科the a more conventional way?
You just need use the Rails.env
to know which environnement you are and switch data.
精彩评论