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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-03-03 20:10:06 +0300
committerJames Lopez <james@jameslopez.es>2016-03-03 20:10:06 +0300
commitcefefb2adea23c81c5e6254992da975eca71b559 (patch)
tree9c1775d8598e283163cf047c217d694aaa24a89a /app/models/project_import_data.rb
parent18411645505f4bf4bb877743cb4dc027d422414b (diff)
WIP - refactored migration and updated project_import_data with encrypted att
Diffstat (limited to 'app/models/project_import_data.rb')
-rw-r--r--app/models/project_import_data.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/project_import_data.rb b/app/models/project_import_data.rb
index cd3319f077e..2900b86d643 100644
--- a/app/models/project_import_data.rb
+++ b/app/models/project_import_data.rb
@@ -12,7 +12,8 @@ require 'file_size_validator'
class ProjectImportData < ActiveRecord::Base
belongs_to :project
-
+ attr_encrypted :credentials, key: Gitlab::Application.secrets.db_key_base
+
serialize :data, JSON
validates :project, presence: true