diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-27 12:09:31 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-27 12:09:31 +0300 |
commit | 2df573afed782aebce8c020d92b42e9da7d2868e (patch) | |
tree | 5ecaa1095fe3b89cd6f89a336db67b368a1bb915 /scripts | |
parent | b505d34cfffb03e1b9b718e01c3d85221683a695 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/regenerate-schema | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/regenerate-schema b/scripts/regenerate-schema index e2d46d14218..65c73a8116a 100755 --- a/scripts/regenerate-schema +++ b/scripts/regenerate-schema @@ -33,6 +33,7 @@ class SchemaRegenerator checkout_clean_schema hide_migrations remove_schema_migration_files + stop_spring reset_db unhide_migrations migrate @@ -149,6 +150,12 @@ class SchemaRegenerator end ## + # Stop spring before modifying the database + def stop_spring + run %q[bin/spring stop] + end + + ## # Run rake task to reset the database. def reset_db run %q[bin/rails db:reset RAILS_ENV=test] |