ileitch/rapns — Issue #38: rails g rapns created multiple migrations with the same timestamp + migration duplications
Author: thrillcall
Created: 2012-02-14 21:51:30+00:00
State: open

Hi,

I just ran 'rails g rapns' and ended up with the following new files:

```
#	config/rapns/
#	db/migrate/20120214214103_create_rapns_feedback.rb
#	db/migrate/20120214214103_create_rapns_notifications.rb
#	db/migrate/20120214214104_add_alert_is_json_to_rapns_notifications.rb
```
However running rake db:migrate results in:

```
➜ git:(feature/rapns) ✗ rake db:migrate ruby-1.9.3-p0@wc-offers
rake aborted!
Multiple migrations have the version number 20120214214103

Tasks: TOP => db:migrate
(See full trace by running task with --trace)
```
I'm not sure if this is result of your generator or if my local Rails (3.2.1) freaked out.

Also, the last migration that was generated to 'add_alert_is_json_to_rapns_notifications' seems like it is simply adding a new column to the first migration table generated. Could this not be rolled into the migration that does 'create_table :rapns_notifications'?