upgrade environment configurations for rails 4 upgrade