summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-12-01 11:01:39 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-01-02 13:50:07 +0100
commitf4c24e0d59aa2ed7fce587866f6a536f0cf2b05b (patch)
treedf4be4ec5fac3692dade106db99c2799a93ee8ae
parentbef3cde04a6d7d2ac2f780cef37ddf98ddb27902 (diff)
downloadgitlab-ce-feature/add-pipeline-unlock-worker.tar.gz
Add processed_at datetime field to ci_commits tablefeature/add-pipeline-unlock-worker
-rw-r--r--db/migrate/20161201095020_add_processed_at_to_ci_pipelines.rb9
-rw-r--r--db/schema.rb3
2 files changed, 11 insertions, 1 deletions
diff --git a/db/migrate/20161201095020_add_processed_at_to_ci_pipelines.rb b/db/migrate/20161201095020_add_processed_at_to_ci_pipelines.rb
new file mode 100644
index 00000000000..ddd529745ca
--- /dev/null
+++ b/db/migrate/20161201095020_add_processed_at_to_ci_pipelines.rb
@@ -0,0 +1,9 @@
+class AddProcessedAtToCiPipelines < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ def change
+ add_column(:ci_commits, :processed_at, :datetime)
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 923ece86edb..41ca42f9c1d 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -243,6 +243,7 @@ ActiveRecord::Schema.define(version: 20161227192806) do
t.integer "duration"
t.integer "user_id"
t.integer "lock_version"
+ t.datetime "processed_at"
end
add_index "ci_commits", ["gl_project_id", "sha"], name: "index_ci_commits_on_gl_project_id_and_sha", using: :btree
@@ -1306,4 +1307,4 @@ ActiveRecord::Schema.define(version: 20161227192806) do
add_foreign_key "subscriptions", "projects", on_delete: :cascade
add_foreign_key "trending_projects", "projects", on_delete: :cascade
add_foreign_key "u2f_registrations", "users"
-end \ No newline at end of file
+end