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

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

class AddShaToStatusCheckResponse < ActiveRecord::Migration[6.0]
  def up
    execute('DELETE FROM status_check_responses')

    add_column :status_check_responses, :sha, :binary, null: false # rubocop:disable Rails/NotNullColumn
  end

  def down
    remove_column :status_check_responses, :sha
  end
end