According to this, in rails 4, renaming a column will rename the index also.
class TestMigration < ActiveRecord::Migration
def change
binding.pry
rename_column :feature_roles, :feature_id, :test_id
binding.pry
end
end
When I've listed the indices of this table before migration, the name of the particular index is index_feature_roles_on_feature_id
and even after migration also, it remains the same. Why is it not updating to index_feature_roles_on_test_id
?
I'm using Jruby 9.1.12.0 (ruby 2.3.3)
structure.sql
diff. - ndnenkov