fix nil exception when using with rails 4
Updated to use conditional assignment, instead if checking for .nil? condition
Merge pull request #60 from ivanfoong/master

Fixed Rails 4 db:migrate broken - undefined method `delete' for NilClass