debian-mirror-gitlab/db/migrate/20200722084623_add_default_membership_role_to_saml_provider.rb

12 lines
281 B
Ruby
Raw Normal View History

2020-10-24 23:57:45 +05:30
# 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