Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec/db
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-05-20 18:09:10 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-05-20 18:09:10 +0300
commit6997e3f3d0a714bc67df268989fb089c943330cc (patch)
tree3749fb3865297df1689624b071d5d80e7783471b /spec/db
parent7ad82cd5d78a4d2c53512cbd1c2584be753f3646 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/db')
-rw-r--r--spec/db/schema_spec.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/spec/db/schema_spec.rb b/spec/db/schema_spec.rb
index 0895e13c3c3..17a9b8dc69c 100644
--- a/spec/db/schema_spec.rb
+++ b/spec/db/schema_spec.rb
@@ -259,14 +259,6 @@ RSpec.describe 'Database schema' do
end
context 'primary keys' do
- let(:exceptions) do
- %i(
- elasticsearch_indexed_namespaces
- elasticsearch_indexed_projects
- merge_request_context_commit_diff_files
- )
- end
-
it 'expects every table to have a primary key defined' do
connection = ActiveRecord::Base.connection
@@ -274,7 +266,7 @@ RSpec.describe 'Database schema' do
!connection.primary_key(table).present?
end.map(&:to_sym)
- expect(problematic_tables - exceptions).to be_empty
+ expect(problematic_tables).to be_empty
end
end