Add rename_index to change_table. #8266

Merged
merged 1 commit into from Nov 19, 2012

Conversation

Projects
None yet
2 participants
Contributor

CvX commented Nov 19, 2012

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 added a commit that referenced this pull request Nov 19, 2012

Merge pull request #8266 from CvX/index_rename
Add rename_index to change_table.

@rafaelfranca rafaelfranca merged commit f460835 into rails:master Nov 19, 2012

Owner

rafaelfranca commented Nov 19, 2012

Thank you

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