Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c39f057a
Commit
c39f057a
authored
Oct 27, 2020
by
Tan Le
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove ignore column code on `type` field
parent
3186e349
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
app/models/audit_event.rb
app/models/audit_event.rb
+0
-11
No files found.
app/models/audit_event.rb
View file @
c39f057a
...
...
@@ -2,7 +2,6 @@
class
AuditEvent
<
ApplicationRecord
include
CreatedAtFilterable
include
IgnorableColumns
include
BulkInsertSafe
include
EachBatch
...
...
@@ -14,8 +13,6 @@ class AuditEvent < ApplicationRecord
:target_id
].
freeze
ignore_column
:type
,
remove_with:
'13.6'
,
remove_after:
'2020-11-22'
serialize
:details
,
Hash
# rubocop:disable Cop/ActiveRecordSerialize
belongs_to
:user
,
foreign_key: :author_id
...
...
@@ -37,14 +34,6 @@ class AuditEvent < ApplicationRecord
# https://gitlab.com/groups/gitlab-org/-/epics/2765
after_validation
:parallel_persist
# Note: After loading records, do not attempt to type cast objects it finds.
# We are in the process of deprecating STI (i.e. SecurityEvent) out of AuditEvent.
#
# https://gitlab.com/gitlab-org/gitlab/-/issues/216845
def
self
.
inheritance_column
:_type_disabled
end
def
self
.
order_by
(
method
)
case
method
.
to_s
when
'created_asc'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment