diff options
Diffstat (limited to 'db/migrate/20230821000001_create_workspace_variables.rb')
-rw-r--r-- | db/migrate/20230821000001_create_workspace_variables.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20230821000001_create_workspace_variables.rb b/db/migrate/20230821000001_create_workspace_variables.rb new file mode 100644 index 00000000000..fd23b48c3c3 --- /dev/null +++ b/db/migrate/20230821000001_create_workspace_variables.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +class CreateWorkspaceVariables < Gitlab::Database::Migration[2.1] + def change + create_table :workspace_variables do |t| + t.references :workspace, index: true, null: false, foreign_key: { on_delete: :cascade } + t.integer :variable_type, null: false, limit: 2 + t.timestamps_with_timezone null: false + t.text :key, null: false, limit: 255 + t.binary :encrypted_value, null: false + t.binary :encrypted_value_iv, null: false + end + end +end |