summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-03 15:29:27 +0200
committerDouwe Maan <douwe@gitlab.com>2015-04-03 15:29:27 +0200
commit7b5bc32cadbf2c0a3ac1e80643e46786fd8b1b56 (patch)
tree0dfa9add1156d8ce9ff8709e36da577b7c94ad1c /db
parent9157985cfce1391973673ea278dc7506a90f8f53 (diff)
downloadgitlab-ce-7b5bc32cadbf2c0a3ac1e80643e46786fd8b1b56.tar.gz
Allow projects to be imported from Google Code.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20150327150017_add_import_data_to_project.rb5
-rw-r--r--db/schema.rb1
2 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20150327150017_add_import_data_to_project.rb b/db/migrate/20150327150017_add_import_data_to_project.rb
new file mode 100644
index 00000000000..12c00339eec
--- /dev/null
+++ b/db/migrate/20150327150017_add_import_data_to_project.rb
@@ -0,0 +1,5 @@
+class AddImportDataToProject < ActiveRecord::Migration
+ def change
+ add_column :projects, :import_data, :text
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 14e32a7946e..390cd4f36d8 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -342,6 +342,7 @@ ActiveRecord::Schema.define(version: 20150328132231) do
t.integer "star_count", default: 0, null: false
t.string "import_type"
t.string "import_source"
+ t.text "import_data"
end
add_index "projects", ["created_at", "id"], name: "index_projects_on_created_at_and_id", using: :btree