Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Create differently titled migration if migration exists already #55
I misunderstood what this was supposed to do. I thought it automatically created a migration file. The best solution I came up with was this but its probably not great and im not sure if using system commands are frowned upon and it will probably slow down the command somewhat significantly.
`bundle exec rake db:migrate:status | grep 'Add missing indexes'`.scan(/Add missing indexes/).count
I would then take that number+1 and append it to the migration name. I also may have to check for existance of bundler gem too.
Let me know what you think, if I shouldn't bother then you can just close the issue.