Don't bother creating the user index on user_roles as migration 48 will
create one on user+role that will do the same job. Removing it here is a bit of a hack as it will not get dropped from existing databases but as it was not given an explicit name it is hard to write a migration to drop it.
This commit is contained in:
parent
78e0ec74f7
commit
4708992f1c
1 changed files with 0 additions and 1 deletions
|
@ -17,7 +17,6 @@ class CreateUserRoles < ActiveRecord::Migration
|
|||
remove_column :users, :administrator
|
||||
|
||||
add_foreign_key :user_roles, [:user_id], :users, [:id]
|
||||
add_index :user_roles, [:user_id]
|
||||
end
|
||||
|
||||
def self.down
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue