0ybokq
Last Updated: October 30, 2018
·
968
· tejasbubane

Check if index exists on some database column in Rails

From Rails console, you can check if a column in some table has database index:

ActiveRecord::Base.connection.index_exists?(:table_name, :column_name)