开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜