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

20170720130522_create_ci_pipeline_variables.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4f162d46cf549e6038ceb2371fe767d5f5d82a2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class CreateCiPipelineVariables < ActiveRecord::Migration[4.2]
  DOWNTIME = false

  def up
    create_table :ci_pipeline_variables do |t|
      t.string :key, null: false
      t.text :value
      t.text :encrypted_value
      t.string :encrypted_value_salt
      t.string :encrypted_value_iv
      t.integer :pipeline_id, null: false
    end

    add_index :ci_pipeline_variables, [:pipeline_id, :key], unique: true
  end

  def down
    drop_table :ci_pipeline_variables
  end
end