best way to start all over again

19 views
Skip to first unread message

Roelof Wobben

unread,
Jun 26, 2014, 1:54:45 AM6/26/14
to rubyonra...@googlegroups.com
Hello,

I made a little project and made a few bad models.

Now I want to start all over again.
Is the best way to make a migration which takes made all the models deleted and make then the right models.
Or can I just delete the directory and start over again.

Roelof

Colin Law

unread,
Jun 26, 2014, 3:08:30 AM6/26/14
to rubyonra...@googlegroups.com
If you have data in the db that you want to keep then use a migration
to move the data to the new database layout. Otherwise just make a
new application and start again. If you want to give it the same name
then rename the existing directory first (or delete it if there is
nothing there you might want to look back at). If you are using mysql
or postgres then you will have to use a db tool to delete the existing
db.

Colin
Reply all
Reply to author
Forward
0 new messages