Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifying migrations when refactoring models #6

Open
rdsoze opened this issue Nov 9, 2012 · 5 comments
Open

Modifying migrations when refactoring models #6

rdsoze opened this issue Nov 9, 2012 · 5 comments

Comments

@rdsoze
Copy link

rdsoze commented Nov 9, 2012

I think creating a new migration is better than modifying existing migrations which currently happens when refactoring models.

@jcrisp
Copy link
Owner

jcrisp commented Nov 10, 2012

certainly once your schema is in production

On 10 November 2012 01:18, rdsoze [email protected] wrote:

I think creating a new migration is better than modifying existing
migrations which currently happens when refactoring models.


Reply to this email directly or view it on GitHubhttps://github.com//issues/6.

@rdsoze
Copy link
Author

rdsoze commented Nov 11, 2012

Even before it's in production, when there are multiple people working and they have already run their migrations, it would be a pain for everyone to just drop and recreate. A simple migration would suffice. Will you accept a PR for this ?

@jcrisp
Copy link
Owner

jcrisp commented Nov 12, 2012

I'd be very happy to take your PR for this.
Can you pop it in with a -m flag for this new behaviour?
James

On 11 November 2012 17:13, rdsoze [email protected] wrote:

Even before it's in production, when there are multiple people working and
they have already run their migrations, it would be a pain for everyone to
just drop and recreate. A simple migration would suffice. Will you accept a
PR for this ?


Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-10263632.

@redbar0n
Copy link

+1

Any progress on this?

I wouldn't want to force anyone (other developers, production, or staging) to drop the entire DB, and potentially lose data not in the seeds file, when doing a simple rename of a model.

@tgaff
Copy link

tgaff commented Mar 6, 2020

Also +1 - did you make any progress here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants