Commit 1148bfaf authored by Alex Ives's avatar Alex Ives

Apply 1 suggestion(s) to 1 file(s)

parent d492a8ad
......@@ -125,7 +125,7 @@ class SchemaRegenerator
# In order to properly reset the database and re-run migrations
# the schema migrations for new migrations must be removed.
def remove_schema_migration_files
git_command = "git diff --name-only --diff-filter=A #{source_ref} -- #{SCHEMA_MIGRATIONS_DIR}"
git_command = "git diff --name-only --diff-filter=A #{merge_base} -- #{SCHEMA_MIGRATIONS_DIR}"
run(git_command).chomp.split("\n").each do |schema_migration|
FileUtils.rm(schema_migration)
end
......
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