diff options
Diffstat (limited to 'db/migrate/20210510083845_add_sha_to_status_check_response.rb')
-rw-r--r-- | db/migrate/20210510083845_add_sha_to_status_check_response.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20210510083845_add_sha_to_status_check_response.rb b/db/migrate/20210510083845_add_sha_to_status_check_response.rb new file mode 100644 index 00000000000..202f5ca00c1 --- /dev/null +++ b/db/migrate/20210510083845_add_sha_to_status_check_response.rb @@ -0,0 +1,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 |