Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

use table_exists? to detect if migration table should be created to avoid SQLite3 error #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

archiloque
Copy link

use table_exists? to detect if migration table should be created to avoid SQLite3::SQLException: index migrations_name_index already exists

…void SQLite3::SQLException: index migrations_name_index already exists
@m-o-e
Copy link

m-o-e commented May 17, 2013

Any reason this is not getting merged?

On postgres the error looks like this:
PG::Error: ERROR: relation "migrations_name_index" already exists: CREATE INDEX "migrations_name_index" ON "migrations" ("name")

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

Successfully merging this pull request may close these issues.

2 participants