Skip to content

Commit

Permalink
Rename running_version to version_currently_migrating
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandiepen committed Nov 15, 2023
1 parent c52b1a7 commit 099a276
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/sequent/migrations/versions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def self.current_version
done.latest_version || 0
end

def self.running_version
def self.version_currently_migrating
running.latest_version
end

Expand Down
2 changes: 1 addition & 1 deletion lib/sequent/rake/migration_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def register_tasks!
desc 'Returns whether a migration is currently running'
task has_running_migrations: [:connect_to_db] do
if Sequent::Migrations::Versions.running.any?
puts "Migration is running, current version: #{Sequent::Migrations::Versions.current_version}, target version #{Sequent::Migrations::Versions.running_version}"
puts "Migration is running, current version: #{Sequent::Migrations::Versions.current_version}, target version #{Sequent::Migrations::Versions.version_currently_migrating}"

Check notice on line 106 in lib/sequent/rake/migration_tasks.rb

View workflow job for this annotation

GitHub Actions / rubocop

[rubocop] lib/sequent/rake/migration_tasks.rb#L106 <Layout/LineLength>

Line is too long. [187/120]
Raw output
lib/sequent/rake/migration_tasks.rb:106:121: C: Layout/LineLength: Line is too long. [187/120]
else
puts 'No running migrations'
end
Expand Down

0 comments on commit 099a276

Please sign in to comment.