No indexes in schema.rb with Postgres 8.3

Hello

When I’m adding an index in a migration like this:

change_table "models" do |t|
  t.index  "position"
end

the index is created but not reflected in schema.rb.

Also ‘rake db:schema:dump’ doesn’t fix this. And when I test my
migration with ‘rake db:migrate:redo’ I get the error:

Index name ‘index_models_on_position’ on table ‘models’ does not exist

I’m using Rails 3.0.5 with pg 0.11.0 and PostgreSQL 8.3.14. The index
definition in Postgres is:

CREATE INDEX index_models_on_position ON models USING btree (position)

I think I’ve found a bug! Didn’t I?

T.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs