Adding changes to allow migration in plugins. Rectifying uninstallation error

Signed-off-by: Arpit Goyal <agmps17@gmail.com>
Merge pull request #68 from agmps18/rails-4

Adding changes to allow migration in plugins. Rectifying uninstallation ...