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

Do not use private API in bug report templates #29524

Conversation

y-yagi
Copy link
Member

@y-yagi y-yagi commented Jun 21, 2017

ActiveRecord::Migrator is private API.

class Migrator#:nodoc:

Therefore, it is not good to use it in bug report templates.
Instead, should use the public API ActiveRecord::Migration#migrate.

`ActiveRecord::Migrator` is private API.
https://github.com/rails/rails/blob/bb9d6eb094f29bb94ef1f26aa44f145f17b973fe/activerecord/lib/active_record/migration.rb#L977

Therefore, it is not good to use it in bug report templates.
Instead, should use the public API `ActiveRecord::Migration#migrate`.
@rails-bot
Copy link

r? @schneems

(@rails-bot has picked a reviewer for you, use r? to override)

@eileencodes eileencodes merged commit 55a443b into rails:master Jun 22, 2017
@y-yagi y-yagi deleted the do_not_use_private_api_in_bug_report_templates branch June 22, 2017 20:49
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

4 participants