What's the correct syntax for remove_index in a Rails 3.1.0 migration?

后端 未结 6 906
清歌不尽
清歌不尽 2021-02-01 00:30

I\'m in the process of adding Devise to an existing Rails app, with a Users table already defined. The devise generator pushed out the following migration:

class         


        
6条回答
  •  心在旅途
    2021-02-01 01:12

    You can also remove the index specifying the columns, which from my point of view is less error prone than writing the name

    remove_index :actions, :column => [:user_id, :action_name]
    

提交回复
热议问题