summaryrefslogtreecommitdiff
path: root/db/migrate/20221107115413_change_scim_oauth_access_token_group_id_remove_null.rb
blob: c33e67291a41186e2f1fe3c0717d191181394bc3 (plain)
1
2
3
4
5
6
7
8
9
10
# 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