Skip to content

Commit 5b69176

Browse files
committed
fix copy error in up.sql migration.
1 parent cd230f8 commit 5b69176

File tree

1 file changed

+2
-2
lines changed
  • migrations/2018-06-20-062854_create_poll_table

1 file changed

+2
-2
lines changed

migrations/2018-06-20-062854_create_poll_table/up.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ CREATE TABLE poll (
1212

1313
CREATE TABLE poll_review_request (
1414
id SERIAL PRIMARY KEY,
15-
fk_poll INTEGER NOT NULL REFERENCES fcp_proposal (id) ON DELETE CASCADE,
15+
fk_poll INTEGER NOT NULL REFERENCES poll (id) ON DELETE CASCADE,
1616
fk_reviewer INTEGER NOT NULL REFERENCES githubuser (id),
1717
reviewed BOOLEAN NOT NULL,
18-
UNIQUE (fk_proposal, fk_reviewer)
18+
UNIQUE (fcp_poll, fk_reviewer)
1919
);

0 commit comments

Comments
 (0)