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

Preserve up and down return type #27620

Merged
merged 2 commits into from Jan 9, 2017

Conversation

schneems
Copy link
Member

@schneems schneems commented Jan 9, 2017

In Rails 4.2 calling ActiveRecord::Migrator.migrate would return an array of results. Without realizing that this return type was expected I accidentally introduced a change in 4d60e93

This PR preserves the previous behavior and adds a test on the return type. This is a backport of #27596 to the 5-0-stable branch.

In Rails 4.2 calling `ActiveRecord::Migrator.migrate` would return an array of results. Without realizing that this return type was expected I accidentally introduced a change in rails@4d60e93

This PR preserves the previous behavior and adds a test on the return type. This is a backport to the 5-0-stable branch.
@rails-bot
Copy link

warning Warning warning

  • Pull requests are usually filed against the master branch for this repo, but this one is against 5-0-stable. Please double check that you specified the right target!

@prathamesh-sonpatki
Copy link
Member

@schneems Can you cherry-pick cb28aee as well in this PR? It adds one more test.

- rails#27596 Updated "run" and "migrate" method for returning correct
   value but only added test for "migrate" method. This commit adds a
   test for "run" as well.
@schneems
Copy link
Member Author

schneems commented Jan 9, 2017

Thanks, done.

@rafaelfranca rafaelfranca merged commit 8d1830e into rails:5-0-stable Jan 9, 2017
@schneems
Copy link
Member Author

schneems commented Jan 9, 2017

Test failures look unrelated? Seems like the suite is a bit brittle these days?

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

Successfully merging this pull request may close these issues.

None yet

5 participants