Rename an index which would be invalid in Postgres
authorMarius Mathiesen <marius@gitorious.org>
Wed, 21 Nov 2012 09:50:38 +0000 (10:50 +0100)
committerMarius Mathiesen <marius@gitorious.org>
Wed, 21 Nov 2012 09:50:38 +0000 (10:50 +0100)
commit4c6ef66b6e5f1a1f2a063c93a00a36fbb16aa2fd
tree23e042409b6eedcfba5bf7503410d0cc8560ccb4
parent10012423f3605d8bdccbf694b5c8a0a75da5b8ad
Rename an index which would be invalid in Postgres

Postgres only allows indices with a name of < 60 characters.  This
commit creates a migration which renames the index for existing
installations and generates a schema.rb which works with db:setup for
Postgres.
db/migrate/20121121093938_rename_troublesome_index.rb [new file with mode: 0644]
db/schema.rb