Skip to content
Snippets Groups Projects
Commit 1cc87f50 authored by pshutsin's avatar pshutsin
Browse files

Add migrations for productivity analytics

parent 7583f534
No related branches found
No related tags found
No related merge requests found
# frozen_string_literal: true
class AddMrProductivityMetrics < ActiveRecord::Migration[5.1]
DOWNTIME = false
def change
add_column :merge_request_metrics, :first_comment_at, :datetime_with_timezone
add_column :merge_request_metrics, :first_commit_at, :datetime_with_timezone
add_column :merge_request_metrics, :last_commit_at, :datetime_with_timezone
add_column :merge_request_metrics, :diff_size, :integer
add_column :merge_request_metrics, :modified_paths_size, :integer
add_column :merge_request_metrics, :commits_count, :integer
end
end
Loading
Loading
@@ -1979,6 +1979,12 @@ ActiveRecord::Schema.define(version: 2019_08_02_012622) do
t.integer "merged_by_id"
t.integer "latest_closed_by_id"
t.datetime_with_timezone "latest_closed_at"
t.datetime_with_timezone "first_comment_at"
t.datetime_with_timezone "first_commit_at"
t.datetime_with_timezone "last_commit_at"
t.integer "diff_size"
t.integer "modified_paths_size"
t.integer "commits_count"
t.index ["first_deployed_to_production_at"], name: "index_merge_request_metrics_on_first_deployed_to_production_at"
t.index ["latest_closed_at"], name: "index_merge_request_metrics_on_latest_closed_at", where: "(latest_closed_at IS NOT NULL)"
t.index ["latest_closed_by_id"], name: "index_merge_request_metrics_on_latest_closed_by_id"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment