lomba/schema_plus — pull request #46 by jdudek (2011-11-11 01:17:46+00:00)
Title: Collision with automatic generation of indexes in Rails 3.1

As of Rails 3.1 using `belongs_to` or `references` in `rails generate model` results in `add_index` for referenced table. At the same time schema_plus creates such index which results in collision (generated migration fails). The solution is to run the generator with `--no-indexes` option, i.e. `rails g model Foo bar:belongs_to --no-indexes`. My suggestion is to configure Rails to disable these indexes by default.