Skip to content

Commit

Permalink
Add sequent:migrate:abort_if_pending_migrations
Browse files Browse the repository at this point in the history
To be used like db:abort_if_pending_migrations but for view_schema migrations
  • Loading branch information
mvandiepen committed Dec 13, 2024
1 parent 9d90395 commit 7b67b6b
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 7b67b6b

Please sign in to comment.