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 ⇒ PendingMigrationError
constructor
A new instance of PendingMigrationError.
Constructor Details
#initialize ⇒ PendingMigrationError
Returns a new instance of PendingMigrationError.
41 42 43 44 45 46 47 |
# File 'lib/active_record/migration.rb', line 41 def initialize if defined?(Rails.env) super("Migrations are pending. To resolve this issue, run:\n\n\tbin/rake db:migrate RAILS_ENV=#{::Rails.env}") else super("Migrations are pending. To resolve this issue, run:\n\n\tbin/rake db:migrate") end end |