# Different DB index types in migrations?

**URL:** <https://www.ruby-forum.com/t/different-db-index-types-in-migrations/123589>\
**Category:** Rails\
**Created:** [December 19, 2007, 12:18am UTC](https://www.ruby-forum.com/t/different-db-index-types-in-migrations/123589 "2007-12-19T00:18:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tekwiz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/dfb087/32.png) [@tekwiz](https://www.ruby-forum.com/u/tekwiz)\
**Post date:** [December 19, 2007, 12:18am UTC](https://www.ruby-forum.com/t/different-db-index-types-in-migrations/123589/1 "2007-12-19T00:18:12Z")

</div>

Is there any way to specify a specific index type in a migration? Eg.  
Hash, Tree, Heap, etc?

Like

```
add_index :user, :name, :type => :tree

```

If not, what type does the migration use?
