Accept columns passed with options in remove_index
Before this patch, column names could only be passed as a positional argument when no other options were supplied: remove_index :reports, :report_id Passing column names positionally along with other options would fail: remove_index :reports, :report_id, unique: true # => ArgumentError: wrong number of arguments (given 3, expected 1..2)
Showing
想要评论请 注册 或 登录