generated migration is empty
MaxPleaner opened this issue · 4 comments
using ruby 2.1.2 and rails 4.1.4
I made models with foreign keys and has_many / belongs_to associations, ran the
rails g migration immigration AddKeys
command, and the corresponding migration was empty. I also tried leaving out one of the foreign keys to see if anything changed, but it didn't. Any help here?
note that the correct command is actually rails g immigration AddKeys
, not rails g migration immigration AddKeys
... hopefully that should solve the issue for you.
if not, please provide some more information (e.g some model definitions, any previously created foreign keys, database used, etc)
i'm going to assume this was due to running the wrong generator command, please reopen with info requested above if that was not the case
this is correct, thanks a lot for your assistance and useful program
no problem, glad to hear it's working for you 😄