mirror of
http://ghproxy.cn/https://github.com/multunus/onemdm-server
synced 2025-12-06 10:14:59 +00:00
API for app usage tracking
This commit is contained in:
11
db/migrate/20160204094618_create_app_usages.rb
Normal file
11
db/migrate/20160204094618_create_app_usages.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateAppUsages < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :app_usages do |t|
|
||||
t.string :package_name, null: false, index: false
|
||||
t.integer :usage_duration_in_seconds, null: false, index: false
|
||||
t.date :used_on, null: false, index: false
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user