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
67894f8f
Commit
67894f8f
authored
Jun 29, 2021
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab master
parents
a5df726d
5c16ff17
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
5 deletions
+6
-5
GITALY_SERVER_VERSION
GITALY_SERVER_VERSION
+1
-1
app/models/ci/base_model.rb
app/models/ci/base_model.rb
+1
-1
app/models/ci/instance_variable.rb
app/models/ci/instance_variable.rb
+1
-1
doc/development/database/multiple_databases.md
doc/development/database/multiple_databases.md
+1
-1
doc/development/foreign_keys.md
doc/development/foreign_keys.md
+2
-1
No files found.
GITALY_SERVER_VERSION
View file @
67894f8f
39a79b3bde65993fd219faf35f24c77d85b357aa
d554b758056dd291fec6fbe6083e941ccf316fdb
app/models/ci/
application_record
.rb
→
app/models/ci/
base_model
.rb
View file @
67894f8f
...
...
@@ -7,7 +7,7 @@ module Ci
# This class is part of a migration to move all CI classes to a new separate database.
# Initially we are only going to be moving the `Ci::InstanceVariable` model and it will be duplicated in the main and CI tables
# Do not extend this class in any other models.
class
ApplicationRecord
<
::
ApplicationRecord
class
BaseModel
<
::
ApplicationRecord
self
.
abstract_class
=
true
if
Gitlab
::
Database
.
has_config?
(
:ci
)
...
...
app/models/ci/instance_variable.rb
View file @
67894f8f
# frozen_string_literal: true
module
Ci
class
InstanceVariable
<
::
Ci
::
ApplicationRecord
class
InstanceVariable
<
::
Ci
::
BaseModel
extend
Gitlab
::
Ci
::
Model
extend
Gitlab
::
ProcessMemoryCache
::
Helper
include
Ci
::
NewHasVariable
...
...
doc/development/database/multiple_databases.md
View file @
67894f8f
...
...
@@ -95,7 +95,7 @@ database. This is to match the default name Rails has.
### Migrations
Any migrations that affect
`Ci::
ApplicationRecord
`
models
Any migrations that affect
`Ci::
BaseModel
`
models
and their tables must be placed in two directories for now:
-
`db/migrate`
...
...
doc/development/foreign_keys.md
View file @
67894f8f
...
...
@@ -28,7 +28,8 @@ Guide](migration_style_guide.md) for more information.
Keep in mind that you can only safely add foreign keys to existing tables after
you have removed any orphaned rows. The method
`add_concurrent_foreign_key`
does not take care of this so you'll need to do so manually.
does not take care of this so you'll need to do so manually. See
[
adding foreign key constraint to an existing column
](
database/add_foreign_key_to_existing_column.md
)
.
## Cascading Deletes
...
...
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