Check out example codes for "how do I update an index in rails". It will help you in understanding the concepts better.

Code Example 1

remove_index :users, column: :email, unique: true

Learn ReactJs, React Native from akashmittal.com