lib/neo4j/errors.rb in neo4j-8.0.0.rc.3 vs lib/neo4j/errors.rb in neo4j-8.0.0.rc.4

- old
+ new

@@ -32,14 +32,15 @@ class IrreversibleMigration < MigrationError; end class UnknownMigrationVersionError < MigrationError; end # Inspired/taken from active_record/migration.rb class PendingMigrationError < MigrationError - def initialize + def initialize(migrations) + pending_migrations = migrations.join("\n") if rails? && defined?(Rails.env) - super("Migrations are pending. To resolve this issue, run:\n\n #{command_name} neo4j:migrate RAILS_ENV=#{::Rails.env}") + super("Migrations are pending:\n#{pending_migrations}\n To resolve this issue, run:\n\n #{command_name} neo4j:migrate RAILS_ENV=#{::Rails.env}") else - super("Migrations are pending. To resolve this issue, run:\n\n #{command_name} neo4j:migrate") + super("Migrations are pending:\n#{pending_migrations}\n To resolve this issue, run:\n\n #{command_name} neo4j:migrate") end end private