Exception: ActiveRecord::PendingMigrationError

Inherits:
ActiveRecordError show all
Defined in:
lib/active_record/migration.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initializePendingMigrationError

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