From e2016fd20b77b6adef7e7da8a50ea4aa97e43dc3 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 14 Nov 2017 15:24:24 +0100 Subject: schema_spec: Don't fail for tables without IDs Some of our tables don't have IDs. These shouldn't fail on type `bigint` because they don't exist in the first place. Refs #4951 --- spec/db/schema_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/db/schema_spec.rb b/spec/db/schema_spec.rb index 0e0fe780a..a36d3f926 100644 --- a/spec/db/schema_spec.rb +++ b/spec/db/schema_spec.rb @@ -13,7 +13,7 @@ RSpec::Matchers.define :use_bigint_keys do File.open(filename, 'r') do |f| @non_bigint_primary_keys = f .grep(/create_table /) - .grep_v(/id: :bigserial/) + .grep_v(/id: (:bigserial|false)/) f.rewind -- cgit v1.2.3