0

I keep on getting duplicate devise migration files with the same name but different time stamp in my rails app. I thought the only way to create a migration is to do so manually. If so, why are these migrations being created?

Is it safe to simply delete one of these files?

LightBox
  • 3,395
  • 4
  • 25
  • 38
  • Under what circumstances do you get them? I've never seen this. – Dave Newton Jan 21 '13 at 20:09
  • I'm not even sure. I manage to restore the code to a point without the duplicates, save and commit. The next time I try to run a rake after some additional code I get the error "Multiple migrations have the name DeviseCreateAdmins" – LightBox Jan 21 '13 at 20:14
  • You might have to include more information; I don't see why it would be creating migrations on its own. Obviously if the migrations are duplicates, and they've been run, there's no need to run them again. – Dave Newton Jan 21 '13 at 20:18
  • Could have been created if you ran the generator twice perhaps? – agmcleod Jan 21 '13 at 20:45
  • Fairly certain I did not run the generator more than once. Unless there is a way to generate a migration without "generate" through cmd. Could be an issue with devise. – LightBox Jan 21 '13 at 20:51
  • Come to think of it could be an issue with git somehow. – LightBox Jan 21 '13 at 20:56

0 Answers0