audit-log 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/db/migrate/20190527035005_create_audit_logs.rb +4 -2
- data/lib/audit-log/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c5aaea871bd51849f3c444ba34c134515f07df19dc6a30fff8de5a831032c64
|
4
|
+
data.tar.gz: 8804fd0c4b167dca2448114d2a9f145ef5bb0150631b2ca4f484cff33cac181a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1c445ecbc5ffc18258dbdc191e4e5404d2f80d9dfff4b86bb5d6aae655694509d72b66698ebf9ec9019feeae37d1384f4440b7e2d0251844db76a6b13c70fca
|
7
|
+
data.tar.gz: 9bd87a113dbb65a3f911245f41cd18a0205e47337c94c08f2438f88208fd91e0f2a44ddd1db4f462deaa16816c66cf4c98d4145d2e00f74366cda2cf2966b92d
|
data/README.md
CHANGED
@@ -6,6 +6,8 @@ Trail audit logs (Operation logs) into the database for user behaviors, includin
|
|
6
6
|
|
7
7
|
> We used audit-log in our production environment more than 1 year, until now (2020.5.21), it's inserted about **20 million** log in our system.
|
8
8
|
|
9
|
+
[中文介绍与使用说明](https://ruby-china.org/topics/39890)
|
10
|
+
|
9
11
|
## Demo UI
|
10
12
|
|
11
13
|
Audit log list:
|
@@ -1,9 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
class CreateAuditLogs < ActiveRecord::Migration[5.0]
|
2
4
|
def change
|
3
5
|
create_table 'audit_logs', force: :cascade do |t|
|
4
6
|
t.string 'action', null: false
|
5
|
-
t.
|
6
|
-
t.
|
7
|
+
t.bigint 'user_id'
|
8
|
+
t.bigint 'record_id'
|
7
9
|
t.string 'record_type'
|
8
10
|
t.text 'payload'
|
9
11
|
t.text 'request'
|
data/lib/audit-log/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: audit-log
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kaminari
|