diff options
Diffstat (limited to 'db/migrate/20190418182545_create_merge_request_trains_table.rb')
-rw-r--r-- | db/migrate/20190418182545_create_merge_request_trains_table.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/db/migrate/20190418182545_create_merge_request_trains_table.rb b/db/migrate/20190418182545_create_merge_request_trains_table.rb deleted file mode 100644 index ac927c9c6b9..00000000000 --- a/db/migrate/20190418182545_create_merge_request_trains_table.rb +++ /dev/null @@ -1,18 +0,0 @@ -# frozen_string_literal: true - -class CreateMergeRequestTrainsTable < ActiveRecord::Migration[5.1] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - def change - create_table :merge_trains, id: :bigserial do |t| - t.references :merge_request, foreign_key: { on_delete: :cascade }, type: :integer, index: false, null: false - t.references :user, foreign_key: { on_delete: :cascade }, type: :integer, null: false - t.references :pipeline, foreign_key: { to_table: :ci_pipelines, on_delete: :nullify }, type: :integer - t.timestamps_with_timezone null: false - - t.index [:merge_request_id], unique: true - end - end -end |