Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

All but the last t.index reference for a table are ignored #227

Closed
fj opened this issue Jan 7, 2016 · 4 comments
Closed

All but the last t.index reference for a table are ignored #227

fj opened this issue Jan 7, 2016 · 4 comments

Comments

@fj
Copy link
Member

fj commented Jan 7, 2016

Given this schema.rb containing this fragment:

  create_table "streams", force: :cascade do |t|
    t.datetime "created_at"
    t.datetime "updated_at"
    t.jsonb    "dependencies",       null: false
    t.index name: "index_first", using: :gin, expression: "(dependencies -> 'one'::text)"
    t.index name: "index_second", using: :gin, expression: "(dependencies -> 'two'::text)"
  end

and then running rake db:drop db:create db:schema:load, only the second index is created. This is using the schema_plus on master, using Padrino.

@ronen
Copy link
Member

ronen commented Jan 10, 2016

@fj thanks for the bug report -- i reproduced it using rails too. will take a look

@ronen
Copy link
Member

ronen commented Jan 11, 2016

Closed in favor of SchemaPlus/schema_plus_pg_indexes#8

@ronen ronen closed this as completed Jan 11, 2016
@ronen
Copy link
Member

ronen commented Jan 11, 2016

@fj fixed it in schema_plus_pg_indexes v0.1.9, which should be pulled in by schema_plus if you bundle update

@ronen
Copy link
Member

ronen commented Jan 13, 2016

@fj oops committed the version yesterday bump but forgot to do the release. now schema_plus_pg_indexes v0.1.9 is released

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants