Copyp ActiveRecord::Base.connection.indexes(:table_name)
p ActiveRecord::Base.connection.indexes(:table_name)