summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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