diff options
Diffstat (limited to 'db/migrate/20200712084655_create_dast_sites.rb')
-rw-r--r-- | db/migrate/20200712084655_create_dast_sites.rb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/db/migrate/20200712084655_create_dast_sites.rb b/db/migrate/20200712084655_create_dast_sites.rb deleted file mode 100644 index fc8d423ffb2..00000000000 --- a/db/migrate/20200712084655_create_dast_sites.rb +++ /dev/null @@ -1,27 +0,0 @@ -# frozen_string_literal: true - -class CreateDastSites < ActiveRecord::Migration[6.0] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - disable_ddl_transaction! - - def up - with_lock_retries do - create_table :dast_sites do |t| - t.references :project, foreign_key: { on_delete: :cascade }, null: false, index: false - t.timestamps_with_timezone null: false - - t.text :url, null: false - end - end - - add_concurrent_index :dast_sites, [:project_id, :url], unique: true - add_text_limit :dast_sites, :url, 255 - end - - def down - drop_table :dast_sites - end -end |