diff options
Diffstat (limited to 'db/migrate/20200827142811_create_merge_request_diff_details.rb')
-rw-r--r-- | db/migrate/20200827142811_create_merge_request_diff_details.rb | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/db/migrate/20200827142811_create_merge_request_diff_details.rb b/db/migrate/20200827142811_create_merge_request_diff_details.rb deleted file mode 100644 index 29b070bc675..00000000000 --- a/db/migrate/20200827142811_create_merge_request_diff_details.rb +++ /dev/null @@ -1,30 +0,0 @@ -# frozen_string_literal: true - -class CreateMergeRequestDiffDetails < ActiveRecord::Migration[6.0] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - disable_ddl_transaction! - - def up - unless table_exists?(:merge_request_diff_details) - with_lock_retries do - create_table :merge_request_diff_details, id: false do |t| - t.references :merge_request_diff, primary_key: true, null: false, foreign_key: { on_delete: :cascade } - t.datetime_with_timezone :verification_retry_at - t.datetime_with_timezone :verified_at - t.integer :verification_retry_count, limit: 2 - t.binary :verification_checksum, using: 'verification_checksum::bytea' - t.text :verification_failure - end - end - end - - add_text_limit :merge_request_diff_details, :verification_failure, 255 - end - - def down - drop_table :merge_request_diff_details - end -end |