Flowdock
method

detailed_migration_message

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: PendingMigrationError
detailed_migration_message() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/migration.rb, line 151
      def detailed_migration_message
        message = "Migrations are pending. To resolve this issue, run:\n\n        bin/rails db:migrate"
        message += " RAILS_ENV=#{::Rails.env}" if defined?(Rails.env)
        message += "\n\n"

        pending_migrations = ActiveRecord::Base.connection.migration_context.open.pending_migrations

        message += "You have #{pending_migrations.size} pending #{pending_migrations.size > 1 ? 'migrations:' : 'migration:'}\n\n"

        pending_migrations.each do |pending_migration|
          message += "#{pending_migration.basename}\n"
        end

        message
      end
Register or log in to add new notes.