diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-15 15:42:29 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-15 17:42:27 +0200 |
commit | 1556d4848d4753b7bddd8430cf223b91e6f47b0f (patch) | |
tree | bb4c140f0d7c6fb4509c3830bf7de7d586e3363b /db | |
parent | 8b7932c21951de172d531ab8a3e9506c98db7483 (diff) | |
download | gitlab-ce-1556d4848d4753b7bddd8430cf223b91e6f47b0f.tar.gz |
Track a user who created a pipeline
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20160715132507_add_user_id_to_pipeline.rb | 7 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 9 insertions, 1 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 diff --git a/db/schema.rb b/db/schema.rb index f24e47b85b2..6ab5a1eaded 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20160712171823) do +ActiveRecord::Schema.define(version: 20160715132507) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -199,6 +199,7 @@ ActiveRecord::Schema.define(version: 20160712171823) do t.datetime "started_at" t.datetime "finished_at" t.integer "duration" + t.integer "user_id" end add_index "ci_commits", ["gl_project_id", "sha"], name: "index_ci_commits_on_gl_project_id_and_sha", using: :btree |