Ruby on Rails Thursday, June 26, 2014

On 26 June 2014 06:54, Roelof Wobben <rwobben@hotmail.com> 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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuJA27d%2B7RQ5%3DEo9p%3DVvdCbtjF4gKbSCXGro5Gbn6qK8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment