| Issue 132: | rake substruct:db:bootstrap not working with postgresql | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. create and configure postgresql db
2. rake substruct:db:bootstrap
3.
What is the expected output? What do you see instead?
expected: NO error messages.
actual: (creates some tables....)
-- add_index("order_addresses", ["first_name", "last_name"], {:name=>"name"})
rake aborted!
PGError: FEHLER: Relation »name« existiert bereits
: CREATE INDEX "name" ON "order_addresses" ("first_name", "last_name")
What version of the product are you using? On what operating system?
substruct-1.0a6, postgresql-8.3, Ubuntu
Please provide any additional information below.
I think it's not possible to have multiple indexes of the same name in the
DB. The supplied db/schema.rb creates an index called "name" for a number
of tables.
Oct 30, 2008
#2
rogerpack2005
Oct 30, 2008
It's fixed by the patch in #138. |