Commit 24505d25 authored by Tiger's avatar Tiger

Stop spring before resetting DB in scripts/regenerate-schema

parent 99382092
...@@ -33,6 +33,7 @@ class SchemaRegenerator ...@@ -33,6 +33,7 @@ class SchemaRegenerator
checkout_clean_schema checkout_clean_schema
hide_migrations hide_migrations
remove_schema_migration_files remove_schema_migration_files
stop_spring
reset_db reset_db
unhide_migrations unhide_migrations
migrate migrate
...@@ -148,6 +149,12 @@ class SchemaRegenerator ...@@ -148,6 +149,12 @@ class SchemaRegenerator
run(git_command).chomp.split("\n") run(git_command).chomp.split("\n")
end end
##
# Stop spring before modifying the database
def stop_spring
run %q[bin/spring stop]
end
## ##
# Run rake task to reset the database. # Run rake task to reset the database.
def reset_db def reset_db
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment