manybots/manybots-github — pull request #1 by NikoRoberts (2012-04-06 14:53:35+00:00)
Title: Multiple migrations have the version number

```
$ bundle exec rake db:migraterake aborted!
Multiple migrations have the version number 20120406141821
```

```
$ ls db/migrate/20120406141821_create_manybots_github_
20120406141821_create_manybots_github_commits.manybots_github.rb
20120406141821_create_manybots_github_repositories.manybots_github.rb
```

From manybots-github / lib / generators / manybots_github / install_generator.rb

There was this method

```
def self.next_migration_number(path)
Time.now.utc.strftime("%Y%m%d%H%M%S")
end

```

This is not sufficient as the two migration files for Github commits and repositories get generated in the same second so I updated it to check the migration number is the path passed in the parameter