Added Analytics function to track user hits by ip address, referrer and user agent
This commit is contained in:
@@ -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
|
||||
+9
-1
@@ -11,7 +11,15 @@
|
||||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20140315002730) do
|
||||
ActiveRecord::Schema.define(:version => 20140408185601) do
|
||||
|
||||
create_table "analytics", :force => true do |t|
|
||||
t.string "ip_address"
|
||||
t.string "referrer"
|
||||
t.string "user_agent"
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
end
|
||||
|
||||
create_table "benefits", :force => true do |t|
|
||||
t.datetime "created_at", :null => false
|
||||
|
||||
Reference in New Issue
Block a user