Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete an app from a Rails project?

Initially I made 2 apps (app_a and app_b) in a single project in Ruby. Now I want to delete one (say app_a). How should I do so? Is deleting the app folder sufficient?

like image 924
nimeshkiranverma Avatar asked Aug 03 '14 16:08

nimeshkiranverma


1 Answers

You need to drop your related database and then delete the app directory

# from app directory
rake db:drop
cd .. && rm -rf app_a

Rails generator command creates a copy of the framework. The app directory id self contained. Deleting it is enough. If you are using sqlite as your database then you can skip first command.

like image 157
RAJ Avatar answered Oct 26 '22 13:10

RAJ