Exception: ActiveRecord::PendingMigrationError
- Inherits:
-
MigrationError
- Object
- StandardError
- ActiveRecordError
- MigrationError
- ActiveRecord::PendingMigrationError
- Defined in:
- lib/active_record/migration.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ PendingMigrationError
constructor
A new instance of PendingMigrationError.
Constructor Details
#initialize(message = nil) ⇒ PendingMigrationError
Returns a new instance of PendingMigrationError.
130 131 132 133 134 135 136 137 138 |
# File 'lib/active_record/migration.rb', line 130 def initialize( = nil) if ! && defined?(Rails.env) super("Migrations are pending. To resolve this issue, run:\n\n bin/rails db:migrate RAILS_ENV=#{::Rails.env}") elsif ! super("Migrations are pending. To resolve this issue, run:\n\n bin/rails db:migrate") else super end end |