Gem to do the pending Migrations

  • we all are facing some issue with when starting the development Server with pending migration.
  • If there are any pending migrations, there is no issue to start our development server. also We donot know any pending migrations present or not.
  • when we take any pages, then it shows Migrations pending.
  • sometimes it shows some variable is null.
  • to solve this issue, we need to use penmig gem.
  • Here is the url.

1

add this gem to development Group. 2

 

bundle install

3

4

generate the template file using command rails g penmig

6

 

thats all, when we take Pull and start our developement Server, it will do any pending migration, then only starts our Dev Server.

8

  • suggestions are welcome.
  • in the next update, will come up with a logic of automatically do the migration and thus no need to resart our server when our DEV server is already started.

Note: will migrate the pending migration only  when we take pull and starts our DEV Server.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s