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

Remove unnecessary respond_to?(:indexes) checking #26688

Merged
merged 1 commit into from Oct 28, 2016

Commits on Oct 2, 2016

  1. Remove unnecessary respond_to?(:indexes) checking

    Currently all adapters (postgresql, mysql2, sqlite3, oracle-enhanced,
    and sqlserver) implemented `indexes` and schema dumper expects
    implemented `indexes`.
    
    https://github.com/rails/rails/blob/v5.0.0/activerecord/lib/active_record/schema_dumper.rb#L208
    
    Therefore `respond_to?(:indexes)` checking is unnecessary.
    kamipo committed Oct 2, 2016
    Copy the full SHA
    444cf0d View commit details
    Browse the repository at this point in the history