summaryrefslogtreecommitdiff
path: root/db/migrate/20150930095736_add_null_to_name_for_ci_projects.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-09-23 12:47:29 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-09-30 12:48:40 +0200
commitb9ccc79cb5d67e356edce3778b6a17def985ed22 (patch)
tree103aacc1d621c7d6436c2ad3a2a52d48dfc395e1 /db/migrate/20150930095736_add_null_to_name_for_ci_projects.rb
parent34431d8ecb1c3d3082c3e391db70b33ca7dbf056 (diff)
downloadgitlab-ce-b9ccc79cb5d67e356edce3778b6a17def985ed22.tar.gz
Delegate ci_project parameters to projects
- It delegates name, path, gitlab_url, ssh_url_to_repo - Remove ability to set this parameters using CI API This fixes GitLab project rename, namespace change, repository rename, etc.
Diffstat (limited to 'db/migrate/20150930095736_add_null_to_name_for_ci_projects.rb')
-rw-r--r--db/migrate/20150930095736_add_null_to_name_for_ci_projects.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20150930095736_add_null_to_name_for_ci_projects.rb b/db/migrate/20150930095736_add_null_to_name_for_ci_projects.rb
new file mode 100644
index 00000000000..a978fcda3ba
--- /dev/null
+++ b/db/migrate/20150930095736_add_null_to_name_for_ci_projects.rb
@@ -0,0 +1,9 @@
+class ChangeNameOfCiProjects < ActiveRecord::Migration
+ def up
+ change_column_null :ci_projects, :name, true
+ end
+
+ def down
+ change_column_null :ci_projects, :name, false
+ end
+end