We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b3c4eca + a1a91e2 commit e76f978Copy full SHA for e76f978
activerecord/lib/active_record/migration.rb
@@ -150,7 +150,7 @@ def initialize(message = nil)
150
private
151
def detailed_migration_message
152
message = "Migrations are pending. To resolve this issue, run:\n\n bin/rails db:migrate"
153
- message += " RAILS_ENV=#{::Rails.env}" if defined?(Rails.env)
+ message += " RAILS_ENV=#{::Rails.env}" if defined?(Rails.env) && !(Rails.env.development? || Rails.env.test?)
154
message += "\n\n"
155
156
pending_migrations = ActiveRecord::Base.connection.migration_context.open.pending_migrations
0 commit comments