Skip to content

Add SnippetStatistics model

What does this MR do?

In this MR we create the new SnippetStatistics model and table. This model will store the repository size, commit count, and file count regarding the snippet repository.

Refs #223696 (closed)

bin/rake db:migrate

== 20200622103836 CreateSnippetStatistics: migrating ==========================
-- create_table(:snippet_statistics, {:id=>false})
   -> 0.0072s
== 20200622103836 CreateSnippetStatistics: migrated (0.0166s) =================

bin/rake db:rollback

== 20200622103836 CreateSnippetStatistics: reverting ==========================
-- drop_table(:snippet_statistics)
   -> 0.0024s
== 20200622103836 CreateSnippetStatistics: reverted (0.0272s) =================

Does this MR meet the acceptance criteria?

Conformity

Merge request reports