diff options
author | Nick Thomas <nick@gitlab.com> | 2016-11-09 22:54:58 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2016-11-10 17:58:31 +0000 |
commit | 2689428ac2071cf300a11d812ad2b9249df7eaac (patch) | |
tree | 2b5b6353c6bb8dcbef6508e2408984d6c6f4b77f /db/schema.rb | |
parent | d366a943ffe2ae6c3599c2ebc4469d49a103bacb (diff) | |
download | gitlab-ce-2689428ac2071cf300a11d812ad2b9249df7eaac.tar.gz |
Fix project records with invalid visibility_level values
The AddVisibilityLevelToGroups migration introduced a visibility_level for
namespaces and specified that projects should always have a visibility level
less than or equal to their namespace. However, some invalid rows could have
been created.
This commit introduces a migration that updates the invalid rows, setting the
invalid project to have the same visibility_level as their namespaces. This
will make some projects internal or private when they would previously have
been public or internal, but this is better than silently making an internal
or private group public.
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb index 62c325a52d7..64d744d8268 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20161106185620) do +ActiveRecord::Schema.define(version: 20161109150329) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" |