debian-mirror-gitlab/db/migrate/20221107115413_change_scim_oauth_access_token_group_id_remove_null.rb
2023-01-12 18:35:48 +00:00

11 lines
302 B
Ruby

# frozen_string_literal: true
class ChangeScimOauthAccessTokenGroupIdRemoveNull < Gitlab::Database::Migration[2.0]
def up
change_column_null :scim_oauth_access_tokens, :group_id, true
end
def down
# There may now be nulls in the table, so we cannot re-add the constraint here.
end
end