summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-17 14:31:24 +0200
committerDouwe Maan <douwe@gitlab.com>2015-04-17 14:49:00 +0200
commit7d98c8842d6bc9b14fb410f028db7ab651961b42 (patch)
tree9cbf2db66275adff0f527d0219393db4c8b7248f /db/migrate
parentdfebcb89e64d2e4b3ebd2d69b6ae386b6fcc5be0 (diff)
downloadgitlab-ce-7d98c8842d6bc9b14fb410f028db7ab651961b42.tar.gz
Move import data out of project so it doesn't take ages to load.
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20150417121913_create_project_import_data.rb8
-rw-r--r--db/migrate/20150417122318_remove_import_data_from_project.rb5
2 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20150417121913_create_project_import_data.rb b/db/migrate/20150417121913_create_project_import_data.rb
new file mode 100644
index 00000000000..c78f5fde85e
--- /dev/null
+++ b/db/migrate/20150417121913_create_project_import_data.rb
@@ -0,0 +1,8 @@
+class CreateProjectImportData < ActiveRecord::Migration
+ def change
+ create_table :project_import_data do |t|
+ t.references :project
+ t.text :data
+ end
+ end
+end
diff --git a/db/migrate/20150417122318_remove_import_data_from_project.rb b/db/migrate/20150417122318_remove_import_data_from_project.rb
new file mode 100644
index 00000000000..c275b49d228
--- /dev/null
+++ b/db/migrate/20150417122318_remove_import_data_from_project.rb
@@ -0,0 +1,5 @@
+class RemoveImportDataFromProject < ActiveRecord::Migration
+ def change
+ remove_column :projects, :import_data
+ end
+end