Remove rails model after migration

后端 未结 3 1447
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-06 05:38

It seems strange to me, that creation of model, running migration, destroying it, and creating again same model reports SQL exception:

project|master ⇒ rails g m         


        
3条回答
  •  鱼传尺愫
    2021-02-06 06:12

    You deleted the model–that's a different operation than rolling back a migration.

    Destroying a model does precisely, and only, that; it has nothing to do with migrations.

提交回复
热议问题