Exception: ActiveRecord::PendingMigrationError
- Inherits:
-
ActiveRecordError
- Object
- StandardError
- ActiveRecordError
- ActiveRecord::PendingMigrationError
- Defined in:
- lib/active_record/migration.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize ⇒ PendingMigrationError
constructor
A new instance of PendingMigrationError.
Constructor Details
#initialize ⇒ PendingMigrationError
Returns a new instance of PendingMigrationError.
34 35 36 37 38 39 40 |
# File 'lib/active_record/migration.rb', line 34 def initialize if defined?(Rails) super("Migrations are pending; run 'bin/rake db:migrate RAILS_ENV=#{::Rails.env}' to resolve this issue.") else super("Migrations are pending; run 'bin/rake db:migrate' to resolve this issue.") end end |