summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-07-15 15:42:29 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-07-15 17:42:27 +0200
commit1556d4848d4753b7bddd8430cf223b91e6f47b0f (patch)
treebb4c140f0d7c6fb4509c3830bf7de7d586e3363b /db/migrate
parent8b7932c21951de172d531ab8a3e9506c98db7483 (diff)
downloadgitlab-ce-1556d4848d4753b7bddd8430cf223b91e6f47b0f.tar.gz
Track a user who created a pipeline
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20160715132507_add_user_id_to_pipeline.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20160715132507_add_user_id_to_pipeline.rb b/db/migrate/20160715132507_add_user_id_to_pipeline.rb
new file mode 100644
index 00000000000..af0461c4daf
--- /dev/null
+++ b/db/migrate/20160715132507_add_user_id_to_pipeline.rb
@@ -0,0 +1,7 @@
+class AddUserIdToPipeline < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ def change
+ add_column :ci_commits, :user_id, :integer
+ end
+end