ActiveRecord how to ignore pending migrations

I am not very sure if this will help you. But I was looking for something and found this question. So it looks like this might help:

In RAILS_ROOT/config/environments/development.rb
Set the following setting to false:

 # NOTE: original version is `:page_load`
 config.active_record.migration_error = false

In my situation it now does not show the pending migration error anymore. Should work for rake tasks and console for the same environment as well.

Source in rails/rails

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)