diff options
Diffstat (limited to 'scripts/regenerate-schema')
-rwxr-xr-x | scripts/regenerate-schema | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/regenerate-schema b/scripts/regenerate-schema index 485bb2d5505..06230942dcd 100755 --- a/scripts/regenerate-schema +++ b/scripts/regenerate-schema @@ -126,7 +126,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 - (untracked_schema_migrations + commited_schema_migrations).each do |schema_migration| + (untracked_schema_migrations + committed_schema_migrations).each do |schema_migration| FileUtils.rm(schema_migration) end end @@ -144,7 +144,7 @@ class SchemaRegenerator # List of untracked schema migrations # # Get a list of schema migrations that have been committed since the last - def commited_schema_migrations + def committed_schema_migrations git_command = "git diff --name-only --diff-filter=A #{merge_base} -- #{SCHEMA_MIGRATIONS_DIR}" run(git_command).chomp.split("\n") end |