Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20200722084623_add_default_membership_role_to_saml_provider.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bd82aab1aae0226261dfb4535c48826ca725ac28 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class AddDefaultMembershipRoleToSamlProvider < ActiveRecord::Migration[6.0]
  DOWNTIME = false

  GUEST_USER_ROLE = 10

  def change
    add_column :saml_providers, :default_membership_role, :smallint, default: GUEST_USER_ROLE, null: false
  end
end