Add rename_index to change_table. #8266

Merged
merged 1 commit into from Nov 19, 2012

Projects

None yet

2 participants

@CvX

With this change rename_index can be used inside a change_table block.
Example:

change_table :accounts do |t|
  t.rename_index :user_id, :account_id
end

I believe it was the only schema transforming method that wasn't available inside change_table.

@rafaelfranca rafaelfranca merged commit f460835 into rails:master Nov 19, 2012
@rafaelfranca
Ruby on Rails member

Thank you

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