0ybokq
Last Updated: September 13, 2018
·
310
· 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)