Image Source

Rails migrations are really helpful in making database related queries platform-independent. This means that you can easily change the database technology that you are using in your project, without having to spend a lot of time making many existing changes.

There can be times when you have some pending migrations that you haven’t executed in your database, but you want to access the view side. Recently I found a post that explains that.

And it is actually quite simple. All you have to do is go and set the following configuration to false at `config/environments/development.rb`

config.active_record.migration_error = false

After that, you are now able to skip the execution of these migrations and open your project in the web browser of your choice.

After you are done, do not forget to turn it back to true, so that you are reminded about those pending migrations and that you need to pay attention to them as soon as possible.

I mentioned the development environment, as I believe you shouldn’t do this in production. You have to test your changes locally before you push them to the production.