This website requires JavaScript.
Explore
Help
Sign in
kotovalexarian-likes-gitlab
/
gitlab-org--gitlab-foss
Watch
1
Star
0
Fork
You've already forked gitlab-org--gitlab-foss
0
Code
Releases
Activity
f14507e586
gitlab-org--gitlab-foss
/
spec
/
factories
/
shards.rb
8 lines
105 B
Ruby
Raw
Normal View
History
Unescape
Escape
Add frozen_string_literal to spec/factories Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-07-25 01:11:48 -04:00
# frozen_string_literal: true
Rename the Repository table to PoolRepository To separate the different kinds of repositories we have at GitLab this table will be renamed to pool_repositories. A project can, for now at least, be member of none, or one of these. The table will get additional columns in a later merge request where more logic is implemented for the model. Further included is a small refactor of logic around hashing ids for the disk_path, mainly to ensure a previous implementation is reusable. The disk_path for the pool_repositories table no longer has a NOT NULL constraint, but given the hashing of the ID requires the DB to assign the record an ID, an after_create hook is used to update the value. A related MR is: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23143, adding tables for 'normal' repositories and wiki_repositories.
2018-11-20 06:48:18 -05:00
FactoryBot
.
define
do
factory
:shard
do
Add latest changes from gitlab-org/gitlab@master
2019-10-01 20:06:26 -04:00
name
{
"
default
"
}
Rename the Repository table to PoolRepository To separate the different kinds of repositories we have at GitLab this table will be renamed to pool_repositories. A project can, for now at least, be member of none, or one of these. The table will get additional columns in a later merge request where more logic is implemented for the model. Further included is a small refactor of logic around hashing ids for the disk_path, mainly to ensure a previous implementation is reusable. The disk_path for the pool_repositories table no longer has a NOT NULL constraint, but given the hashing of the ID requires the DB to assign the record an ID, an after_create hook is used to update the value. A related MR is: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23143, adding tables for 'normal' repositories and wiki_repositories.
2018-11-20 06:48:18 -05:00
end
end
Copy permalink