Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gpt
large_projects
gitlabhq1
Commits
cef07ddd
Commit
cef07ddd
authored
6 years ago
by
blackst0ne
Browse files
Options
Download
Email Patches
Plain Diff
[Rails5] Add `ApplicationRecord`
parent
02c007bd
Changes
329
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
23 additions
and
19 deletions
+23
-19
app/models/abuse_report.rb
app/models/abuse_report.rb
+1
-1
app/models/appearance.rb
app/models/appearance.rb
+1
-1
app/models/application_record.rb
app/models/application_record.rb
+4
-0
app/models/application_setting.rb
app/models/application_setting.rb
+1
-1
app/models/application_setting/term.rb
app/models/application_setting/term.rb
+1
-1
app/models/audit_event.rb
app/models/audit_event.rb
+1
-1
app/models/award_emoji.rb
app/models/award_emoji.rb
+1
-1
app/models/badge.rb
app/models/badge.rb
+1
-1
app/models/board.rb
app/models/board.rb
+1
-1
app/models/broadcast_message.rb
app/models/broadcast_message.rb
+1
-1
app/models/chat_name.rb
app/models/chat_name.rb
+1
-1
app/models/chat_team.rb
app/models/chat_team.rb
+1
-1
app/models/ci/build_metadata.rb
app/models/ci/build_metadata.rb
+1
-1
app/models/ci/build_trace_chunk.rb
app/models/ci/build_trace_chunk.rb
+1
-1
app/models/ci/build_trace_section.rb
app/models/ci/build_trace_section.rb
+1
-1
app/models/ci/build_trace_section_name.rb
app/models/ci/build_trace_section_name.rb
+1
-1
app/models/ci/group_variable.rb
app/models/ci/group_variable.rb
+1
-1
app/models/ci/job_artifact.rb
app/models/ci/job_artifact.rb
+1
-1
app/models/ci/pipeline.rb
app/models/ci/pipeline.rb
+1
-1
app/models/ci/pipeline_schedule.rb
app/models/ci/pipeline_schedule.rb
+1
-1
No files found.
app/models/abuse_report.rb
View file @
cef07ddd
class
AbuseReport
<
A
ctiveRecord
::
Base
class
AbuseReport
<
A
pplicationRecord
include
CacheMarkdownField
cache_markdown_field
:message
,
pipeline: :single_line
...
...
This diff is collapsed.
Click to expand it.
app/models/appearance.rb
View file @
cef07ddd
class
Appearance
<
A
ctiveRecord
::
Base
class
Appearance
<
A
pplicationRecord
include
CacheableAttributes
include
CacheMarkdownField
include
ObjectStorage
::
BackgroundMove
...
...
This diff is collapsed.
Click to expand it.
app/models/application_record.rb
0 → 100644
View file @
cef07ddd
# rubocop:disable Rails5/ApplicationRecord
class
ApplicationRecord
<
ActiveRecord
::
Base
self
.
abstract_class
=
true
end
This diff is collapsed.
Click to expand it.
app/models/application_setting.rb
View file @
cef07ddd
class
ApplicationSetting
<
A
ctiveRecord
::
Base
class
ApplicationSetting
<
A
pplicationRecord
include
CacheableAttributes
include
CacheMarkdownField
include
TokenAuthenticatable
...
...
This diff is collapsed.
Click to expand it.
app/models/application_setting/term.rb
View file @
cef07ddd
class
ApplicationSetting
class
Term
<
A
ctiveRecord
::
Base
class
Term
<
A
pplicationRecord
include
CacheMarkdownField
has_many
:term_agreements
...
...
This diff is collapsed.
Click to expand it.
app/models/audit_event.rb
View file @
cef07ddd
class
AuditEvent
<
A
ctiveRecord
::
Base
class
AuditEvent
<
A
pplicationRecord
serialize
:details
,
Hash
# rubocop:disable Cop/ActiveRecordSerialize
belongs_to
:user
,
foreign_key: :author_id
...
...
This diff is collapsed.
Click to expand it.
app/models/award_emoji.rb
View file @
cef07ddd
class
AwardEmoji
<
A
ctiveRecord
::
Base
class
AwardEmoji
<
A
pplicationRecord
DOWNVOTE_NAME
=
"thumbsdown"
.
freeze
UPVOTE_NAME
=
"thumbsup"
.
freeze
...
...
This diff is collapsed.
Click to expand it.
app/models/badge.rb
View file @
cef07ddd
class
Badge
<
A
ctiveRecord
::
Base
class
Badge
<
A
pplicationRecord
# This structure sets the placeholders that the urls
# can have. This hash also sets which action to ask when
# the placeholder is found.
...
...
This diff is collapsed.
Click to expand it.
app/models/board.rb
View file @
cef07ddd
class
Board
<
A
ctiveRecord
::
Base
class
Board
<
A
pplicationRecord
belongs_to
:group
belongs_to
:project
...
...
This diff is collapsed.
Click to expand it.
app/models/broadcast_message.rb
View file @
cef07ddd
class
BroadcastMessage
<
A
ctiveRecord
::
Base
class
BroadcastMessage
<
A
pplicationRecord
include
CacheMarkdownField
include
Sortable
...
...
This diff is collapsed.
Click to expand it.
app/models/chat_name.rb
View file @
cef07ddd
class
ChatName
<
A
ctiveRecord
::
Base
class
ChatName
<
A
pplicationRecord
LAST_USED_AT_INTERVAL
=
1
.
hour
belongs_to
:service
...
...
This diff is collapsed.
Click to expand it.
app/models/chat_team.rb
View file @
cef07ddd
class
ChatTeam
<
A
ctiveRecord
::
Base
class
ChatTeam
<
A
pplicationRecord
validates
:team_id
,
presence:
true
validates
:namespace
,
uniqueness:
true
...
...
This diff is collapsed.
Click to expand it.
app/models/ci/build_metadata.rb
View file @
cef07ddd
module
Ci
# The purpose of this class is to store Build related data that can be disposed.
# Data that should be persisted forever, should be stored with Ci::Build model.
class
BuildMetadata
<
A
ctiveRecord
::
Base
class
BuildMetadata
<
A
pplicationRecord
extend
Gitlab
::
Ci
::
Model
include
Presentable
include
ChronicDurationAttribute
...
...
This diff is collapsed.
Click to expand it.
app/models/ci/build_trace_chunk.rb
View file @
cef07ddd
module
Ci
class
BuildTraceChunk
<
A
ctiveRecord
::
Base
class
BuildTraceChunk
<
A
pplicationRecord
include
FastDestroyAll
extend
Gitlab
::
Ci
::
Model
...
...
This diff is collapsed.
Click to expand it.
app/models/ci/build_trace_section.rb
View file @
cef07ddd
module
Ci
class
BuildTraceSection
<
A
ctiveRecord
::
Base
class
BuildTraceSection
<
A
pplicationRecord
extend
Gitlab
::
Ci
::
Model
belongs_to
:build
,
class_name:
'Ci::Build'
...
...
This diff is collapsed.
Click to expand it.
app/models/ci/build_trace_section_name.rb
View file @
cef07ddd
module
Ci
class
BuildTraceSectionName
<
A
ctiveRecord
::
Base
class
BuildTraceSectionName
<
A
pplicationRecord
extend
Gitlab
::
Ci
::
Model
belongs_to
:project
...
...
This diff is collapsed.
Click to expand it.
app/models/ci/group_variable.rb
View file @
cef07ddd
module
Ci
class
GroupVariable
<
A
ctiveRecord
::
Base
class
GroupVariable
<
A
pplicationRecord
extend
Gitlab
::
Ci
::
Model
include
HasVariable
include
Presentable
...
...
This diff is collapsed.
Click to expand it.
app/models/ci/job_artifact.rb
View file @
cef07ddd
module
Ci
class
JobArtifact
<
A
ctiveRecord
::
Base
class
JobArtifact
<
A
pplicationRecord
include
AfterCommitQueue
include
ObjectStorage
::
BackgroundMove
extend
Gitlab
::
Ci
::
Model
...
...
This diff is collapsed.
Click to expand it.
app/models/ci/pipeline.rb
View file @
cef07ddd
module
Ci
class
Pipeline
<
A
ctiveRecord
::
Base
class
Pipeline
<
A
pplicationRecord
extend
Gitlab
::
Ci
::
Model
include
HasStatus
include
Importable
...
...
This diff is collapsed.
Click to expand it.
app/models/ci/pipeline_schedule.rb
View file @
cef07ddd
module
Ci
class
PipelineSchedule
<
A
ctiveRecord
::
Base
class
PipelineSchedule
<
A
pplicationRecord
extend
Gitlab
::
Ci
::
Model
include
Importable
include
IgnorableColumn
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
5
…
17
Next
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