seeds.rb is just a plain ruby file, so there are several ways you could approach this. How about a case statement?
# do common stuff here
case Rails.env
when "development"
...
when "production"
...
end
seeds.rb is just a plain ruby file, so there are several ways you could approach this. How about a case statement?
# do common stuff here
case Rails.env
when "development"
...
when "production"
...
end