Ruby on Rails
Tuesday, September 5, 2017
the database isn't in production, it has a bunch of faker data in it.
On Tue, Sep 5, 2017 at 11:48 AM, Norbert Melzer <timmelzer@gmail.com> wrote:
On 09/05/2017 05:16 PM, Joe Guerra wrote:
> Well, I wasn't going to touch the schema file directly. I thought
> about merging some migrations and deleting some that aren't being used.
>
> If I deleted the database and re-ran the migrations wouldn't it update
> the schema?
Yes, but it would bring the databases of everyone else out of sync.
Migrations are a history of changes made to your schema to (re-)create
the actual one.
Its just like version controll for your code. You won't delete your .git
just because you had a type somewhere, won't you?
--
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/ .ab4fafd2-e39c-6c28-5b1e- 30849dc83cd0%40gmail.com
For more options, visit https://groups.google.com/d/optout .
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/CAOFgAMkRE1pFDsA%3D2dkUSkG4%3Di62sH%3DQ4Gjuo%2BEGu776eR936g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment