diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-20 18:09:10 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-20 18:09:10 +0300 |
commit | 6997e3f3d0a714bc67df268989fb089c943330cc (patch) | |
tree | 3749fb3865297df1689624b071d5d80e7783471b /spec/db | |
parent | 7ad82cd5d78a4d2c53512cbd1c2584be753f3646 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/db')
-rw-r--r-- | spec/db/schema_spec.rb | 10 |
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 |