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:
authorDouwe Maan <douwe@gitlab.com>2015-04-17 15:31:24 +0300
committerDouwe Maan <douwe@gitlab.com>2015-04-17 15:49:00 +0300
commit7d98c8842d6bc9b14fb410f028db7ab651961b42 (patch)
tree9cbf2db66275adff0f527d0219393db4c8b7248f /app/models/project_import_data.rb
parentdfebcb89e64d2e4b3ebd2d69b6ae386b6fcc5be0 (diff)
Move import data out of project so it doesn't take ages to load.
Diffstat (limited to 'app/models/project_import_data.rb')
-rw-r--r--app/models/project_import_data.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/models/project_import_data.rb b/app/models/project_import_data.rb
new file mode 100644
index 00000000000..6a8a8a56eb5
--- /dev/null
+++ b/app/models/project_import_data.rb
@@ -0,0 +1,19 @@
+# == Schema Information
+#
+# Table name: project_import_datas
+#
+# id :integer not null, primary key
+# project_id :integer
+# data :text
+#
+
+require 'carrierwave/orm/activerecord'
+require 'file_size_validator'
+
+class ProjectImportData < ActiveRecord::Base
+ belongs_to :project
+
+ serialize :data, JSON
+
+ validates :project, presence: true
+end