Removing non existing model from ruby on rails application

时间:2017-08-03 05:04:32

标签: ruby-on-rails ruby ruby-on-rails-5

I am going to removing existing model form my application, then its works fine.

invoke active_record remove db/migrate/20170803044626_create_students.rb remove app/models/student.rb invoke test_unit remove test/models/student_test.rb remove test/fixtures/students.yml

gives:

rails d model test

when I am going to remove non-exist model like

invoke active_record remove db/migrate/20170803044857_create_tests.rb remove app/models/test.rb invoke test_unit remove test/models/test_test.rb remove test/fixtures/tests.yml

gives:

models

Why is model removing? although the model does not exist.I expect an error.

0 个答案:

没有答案