开发者

How can I split seeds.rb to populated different data in development vs. production?

开发者 https://www.devze.com 2023-02-01 07:19 出处:网络
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 a

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

精彩评论

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