diff options
Diffstat (limited to 'scripts/regenerate-schema')
-rwxr-xr-x | scripts/regenerate-schema | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/regenerate-schema b/scripts/regenerate-schema index 67c58339c6c..f1018403395 100755 --- a/scripts/regenerate-schema +++ b/scripts/regenerate-schema @@ -52,8 +52,8 @@ class SchemaRegenerator def checkout_ref return unless ci? - run %[git checkout #{source_ref}] - run %q[git clean -f -- db] + run %(git checkout #{source_ref}) + run %q(git clean -f -- db) end ## @@ -71,8 +71,8 @@ class SchemaRegenerator return false unless project_url return false unless target_project_url - run %[git remote add target_project #{target_project_url}.git] - run %[git fetch target_project #{target_branch}:#{target_branch}] + run %(git remote add target_project #{target_project_url}.git) + run %(git fetch target_project #{target_branch}:#{target_branch}) local_checkout_clean_schema end @@ -83,8 +83,8 @@ class SchemaRegenerator # Ask git to checkout the schema from the target branch and reset # the file to unstage the changes. def local_checkout_clean_schema - run %[git checkout #{merge_base} -- #{FILENAME}] - run %[git reset -- #{FILENAME}] + run %(git checkout #{merge_base} -- #{FILENAME}) + run %(git reset -- #{FILENAME}) end ## @@ -152,19 +152,19 @@ class SchemaRegenerator ## # Stop spring before modifying the database def stop_spring - run %q[bin/spring stop] + 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] + run %q(bin/rails db:reset RAILS_ENV=test) end ## # Run rake task to run migrations. def migrate - run %q[bin/rails db:migrate RAILS_ENV=test] + run %q(bin/rails db:migrate RAILS_ENV=test) end ## |