Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20200210184410_create_operations_strategies_table.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4d65267c1a711bd17547a711aa3e4dc0963a7fa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class CreateOperationsStrategiesTable < ActiveRecord::Migration[6.0]
  DOWNTIME = false

  # rubocop:disable Migration/PreventStrings
  def change
    create_table :operations_strategies do |t|
      t.references :feature_flag, index: true, null: false, foreign_key: { to_table: :operations_feature_flags, on_delete: :cascade }
      t.string :name, null: false, limit: 255
      t.jsonb :parameters, null: false, default: {}
    end
  end
  # rubocop:enable Migration/PreventStrings
end