Skip to content

Commit

Permalink
Merge pull request #433 from zilverline/improvement/abort-if-pending-…
Browse files Browse the repository at this point in the history
…migrations-rake

Add sequent:migrate:abort_if_pending_migrations rake task
  • Loading branch information
mvandiepen authored Dec 13, 2024
2 parents 9d90395 + 7b67b6b commit d7f3895
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/sequent/rake/migration_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ def register_tasks!
end
end

desc 'Aborts if a migration is pending'
task abort_if_pending_migrations: [:create_and_migrate_sequent_view_schema] do
abort if Sequent.new_version != Sequent::Migrations::Versions.current_version
end

desc <<-EOS
Shows the current status of the migrations
EOS
Expand Down

0 comments on commit d7f3895

Please sign in to comment.