Add rename_index to change_table. #8266

merged 1 commit into from Nov 19, 2012


None yet

2 participants


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

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

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
Ruby on Rails member

Thank you

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