Move rails env and ruby version to attributes