infrustructure for tracking application web requests

This commit is contained in:
Sam
2015-02-04 15:10:54 +11:00
parent 06edfb85a9
commit e105f0965c
3 changed files with 160 additions and 0 deletions

View File

@ -0,0 +1,11 @@
class AddApplicationRequests < ActiveRecord::Migration
def change
create_table :application_requests do |t|
t.date :date, null: false
t.integer :req_type, null: false
t.integer :count, null: false, default: 0
end
add_index :application_requests, [:date, :req_type], unique: true
end
end