Added Analytics function to track user hits by ip address, referrer and user agent

This commit is contained in:
John Poulin
2014-04-08 17:24:57 -04:00
committed by cktricky
parent 5056f77395
commit 3f63480022
7 changed files with 95 additions and 3 deletions
@@ -0,0 +1,10 @@
class CreateAnalytics < ActiveRecord::Migration
def change
create_table :analytics do |t|
t.string :ip_address
t.string :referrer
t.string :user_agent
t.timestamps
end
end
end