diff options
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 3f6503a60a9..30524e4bbae 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -81,6 +81,11 @@ RSpec.configure do |config| metadata[:migration] = true if metadata[:level] == :migration end + # Do not overwrite schema if it's already set + unless metadata.key?(:schema) + metadata[:schema] = :latest if quality_level.background_migration?(location) + end + # Do not overwrite type if it's already set unless metadata.key?(:type) match = location.match(%r{/spec/([^/]+)/}) |