initial commit from appmail

This commit is contained in:
Adam Cooke
2017-04-19 13:07:25 +01:00
parent a3eff53792
commit 2fdba0ceb5
474 changed files with 51228 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
# == Schema Information
#
# Table name: statistics
#
# id :integer not null, primary key
# total_messages :integer default(0)
# total_outgoing :integer default(0)
# total_incoming :integer default(0)
#
class Statistic < ApplicationRecord
def self.global
Statistic.first || Statistic.create
end
end