mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
infrustructure for tracking application web requests
This commit is contained in:
11
db/migrate/20150203041207_add_application_requests.rb
Normal file
11
db/migrate/20150203041207_add_application_requests.rb
Normal 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
|
Reference in New Issue
Block a user