Delete model and migration file rails 4
rails-migrations, ruby-on-rails
Solution
Just give
rails destroy model Tag
Problem
I was attempting to add a tagging model to my rails blog. But I accidentally generated a "Tags.rb" model as opposed to "Tag.rb", after reading the guide I realized that making "tag" plural was a mistake when it comes to model. I rolled back the migration using ``` rake db:rollback ``` and then ``` rails destroy model Tags.rb ``` and this was what i got back ``` invoke active_record remove /home/migration/templates/create_table_migration.rb remove app/models/tags.rb.rb invoke test_unit remove test/models/tags.rb_test.rb remove test/fixtures/tags.rbs.yml ``` When I come back to the model folder though its still there. Please help :)