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
checkout_clean_schema
hide_migrations
remove_schema_migration_files
stop_spring
reset_db
unhide_migrations
migrate
......@@ -148,6 +149,12 @@ class SchemaRegenerator
run(git_command).chomp.split("\n")
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
......
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