2019-02-15 15:39:39 +05:30
|
|
|
class CreateCiPipelineVariables < ActiveRecord::Migration[4.2]
|
2017-09-10 17:25:29 +05:30
|
|
|
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
|