core/rails/app/models/role.rb
# Make sure there is a deployment role for ourself in the deployment.
Make sure there is a deployment role for ourself in the deployment.
Make sure there is a deployment role for ourself in the deployment .
def add_to_deployment(dep)
    DeploymentRole.unsafe_locked_transaction do
      Rails.logger.info("Role: Creating deployment_role for #{self.name} in #{dep.name}")
      DeploymentRole.find_or_create_by!(role_id: self.id, deployment_id: dep.id)
    end
  end
def add_to_deployment ( dep ) DeploymentRole . unsafe_locked_transaction do Rails . logger . info ( "Role: Creating deployment_role for #{self.name} in #{dep.name}" ) DeploymentRole . find_or_create_by! ( role_id : self . id , deployment_id : dep . id ) end end
Make sure there is a deployment role for ourself in the deployment.
Make sure there is a deployment role for ourself in the deployment .
dep
<not_specific>