diff options
Diffstat (limited to 'db/migrate/20191001170300_create_ci_ref.rb')
-rw-r--r-- | db/migrate/20191001170300_create_ci_ref.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/db/migrate/20191001170300_create_ci_ref.rb b/db/migrate/20191001170300_create_ci_ref.rb deleted file mode 100644 index feeb8517e6e..00000000000 --- a/db/migrate/20191001170300_create_ci_ref.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -class CreateCiRef < ActiveRecord::Migration[5.2] - DOWNTIME = false - - # rubocop:disable Migration/PreventStrings - def change - create_table :ci_refs do |t| - t.references :project, null: false, index: false, foreign_key: { on_delete: :cascade }, type: :integer - t.integer :lock_version, default: 0 - t.integer :last_updated_by_pipeline_id - t.boolean :tag, default: false, null: false - t.string :ref, null: false, limit: 255 - t.string :status, null: false, limit: 255 - t.foreign_key :ci_pipelines, column: :last_updated_by_pipeline_id, on_delete: :nullify - t.index [:project_id, :ref, :tag], unique: true - t.index [:last_updated_by_pipeline_id] - end - end - # rubocop:enable Migration/PreventStrings -end |