Best way to start all over again

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

On 26 June 2014 06:54, Roelof W. [email protected] wrote:

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.

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs