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

Fixed bugs in migrations. #3

Closed
wants to merge 3 commits into from

Conversation

michaelstalker
Copy link

The AddPositionToAttachments migration broke when it executed Page.all(:include => :attachments).each do |page| (I think this was the line). It created a MySQL error because the parent_id didn't exist, yet, but the code assumed it did.

I also edited some self.down methods so we could undo migrations cleanly; there were some errors in those methods, too.

@michaelstalker
Copy link
Author

I tried to isolate the migration fixes by changing the source for this pull request to my migrations branch. That apparently didn't work. Use caution if you decide to pull in commit 027e14d.

@michaelstalker
Copy link
Author

You may want to ignore commits 027e14d and 66811c8. They were never meant to go with this pull request :(

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

Successfully merging this pull request may close these issues.

None yet

1 participant