summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-11-14 20:36:44 +0900
committerShinya Maeda <shinya@gitlab.com>2018-11-14 20:36:44 +0900
commit811c38bdb7ec1abd7a6064cd46577806636e66df (patch)
tree81d97f50873d4c2ce55e1f6e682406df253f5f70 /app/models/project.rb
parent078fab665bee3cf283053fe03193b6a73ff7d427 (diff)
downloadgitlab-ce-sm-efficient-counters.tar.gz
Create statistics tablesm-efficient-counters
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index d87fc1e4b86..5efa1ce9155 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -226,7 +226,8 @@ class Project < ActiveRecord::Base
has_one :import_data, class_name: 'ProjectImportData', inverse_of: :project, autosave: true
has_one :project_feature, inverse_of: :project
- has_one :statistics, class_name: 'ProjectStatistics'
+ # has_one :statistics, class_name: 'ProjectStatistics'
+ has_one :statistics, foreign_key: 'project_id', class_name: 'Statistic'
has_one :cluster_project, class_name: 'Clusters::Project'
has_many :clusters, through: :cluster_project, class_name: 'Clusters::Cluster'