Ruby on Rails Tuesday, September 5, 2017

-----BEGIN PGP SIGNATURE-----

iQJIBAEBCAAyFiEEN3gQFkOJVa2DePULsxg2h+KO4AcFAlmuxzUUHHRpbW1lbHpl
ckBnbWFpbC5jb20ACgkQsxg2h+KO4AfrZQ/+Np8VC6+jC1Gll1alebCrgrzT8i6o
w88aFV4sspZLrOIBKe2lb/qz8N0RoSRjCdr4rjQY7weNV6W1WRC0NixVuteh8yVm
CoAQ724XfRjEONNube764ctIVti8LPvJfptoMY3QHtvIcFLb0TNzSVpzFC01/0Op
BdhgAd+00MrnVdqV4obooiHm6MRQlwTcU5H7H+Xg3PJG773JEWmIdSmhYkMpmCNp
TUdzcJsk7yTXOenjcxRXbfBgb5/T7e9Jv/oIrcvEM2WbWqOAXDXuyIaVMHvGdBd5
yMHzDVB+tltG2twPvR+lYPggMEUpFER3NB4z0f2BbWb84RVowBjcNPk9t8WFueuy
Y0Urbn5HxkncK33CdOvunIGQq2FNvPPmd2dhRDjrG/Mv+8q2XtM66/sMMTpcZ5EP
eQzy1VX1ckJU8WVX6sVP1rVcZtKpx7KrOPykYU16tS3TRccOvxXc9eedlj8wDPSp
n2Fm474XfvD/62IIc/4fjE8SM5xGcQrVK9MHG+xMTnXPGWjKi7xI6qUcRGnqjF3H
KRM3yE5YMplUcW5cyI5pOaaeKG+VjKWt+AhX37BFKj+T2HQNouK8QaZeJZY63F5U
rVbeN/+3XX9/m1XxKP95yOEe5AL6ayuDZkyTEwOGsTiZgDI2upR8e4icuy3+FTxJ
VDNNvSSUSdvuM/I=
=dfbm
-----END PGP SIGNATURE-----
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.

No comments:

Post a Comment