Exception: ActiveRecord::PendingMigrationError

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

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initializePendingMigrationError

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)
    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