Flowdock
method

rename_table_indexes

Importance_0
Ruby on Rails latest stable (v4.2.1) - 0 notes - Class: ActiveRecord::ConnectionAdapters::SchemaStatements
rename_table_indexes(table_name, new_name) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 977
        def rename_table_indexes(table_name, new_name)
          indexes(new_name).each do |index|
            generated_index_name = index_name(table_name, column: index.columns)
            if generated_index_name == index.name
              rename_index new_name, generated_index_name, index_name(new_name, column: index.columns)
            end
          end
        end
Register or log in to add new notes.