Skip to content
Snippets Groups Projects
Commit bddef293 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Ensure that doesn't have pending migrations when running the specs

parent 1d5f96cf
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -8,7 +8,7 @@ before_script:
- touch log/application.log
- touch log/test.log
- bundle install --without postgres production --jobs $(nproc) "${FLAGS[@]}"
- bundle exec rake db:reset db:create RAILS_ENV=test
- RAILS_ENV=test bundle exec rake db:drop db:create db:schema:load db:migrate
 
spec:feature:
script:
Loading
Loading
@@ -118,7 +118,7 @@ flay:
- mysql
 
bundler:audit:
script:
script:
- "bundle exec bundle-audit update"
- "bundle exec bundle-audit check"
tags:
Loading
Loading
Loading
Loading
@@ -39,7 +39,6 @@ module Gitlab
end
 
use_db && ActiveRecord::Base.connection.active? &&
!ActiveRecord::Migrator.needs_migration? &&
ActiveRecord::Base.connection.table_exists?('application_settings')
 
rescue ActiveRecord::NoDatabaseError
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment