29 lines
803 B
Ruby
29 lines
803 B
Ruby
# == Schema Information
|
|
#
|
|
# Table name: daily_project_statistics
|
|
#
|
|
# id :integer not null, primary key
|
|
# project_id :integer
|
|
# date :string(255)
|
|
# visits :integer default("0")
|
|
# watchers :integer default("0")
|
|
# praises :integer default("0")
|
|
# forks :integer default("0")
|
|
# issues :integer default("0")
|
|
# pullrequests :integer default("0")
|
|
# commits :integer default("0")
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_daily_project_statistics_on_date (date)
|
|
# index_daily_project_statistics_on_project_id (project_id)
|
|
#
|
|
|
|
class DailyProjectStatistic < ApplicationRecord
|
|
|
|
|
|
belongs_to :project
|
|
end
|