diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-03-08 00:45:24 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-03-08 00:45:24 -0500 |
commit | 6e3841a6a5c3c9bd1590941585fcd044e76ce9cc (patch) | |
tree | a3992f610d8731c4ce762ac948f1e4d577a595cf /src/guff/migrations.cr | |
parent | 5bea72753a2afbaaedbed1538d44e1c1b586917a (diff) | |
download | old-guff-6e3841a6a5c3c9bd1590941585fcd044e76ce9cc.tar.bz2 old-guff-6e3841a6a5c3c9bd1590941585fcd044e76ce9cc.zip |
move migrations to separate file
Diffstat (limited to 'src/guff/migrations.cr')
-rw-r--r-- | src/guff/migrations.cr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/guff/migrations.cr b/src/guff/migrations.cr index aef1f27..0894aea 100644 --- a/src/guff/migrations.cr +++ b/src/guff/migrations.cr @@ -78,10 +78,10 @@ module Guff CREATE INDEX in_tags_name ON tags(name) }, %{ CREATE TABLE post_tags ( - tag_id INTEGER NOT NULL + tag_id INTEGER NOT NULL REFERENCES tags(tag_id), - post_id INTEGER NOT NULL + post_id INTEGER NOT NULL REFERENCES posts(post_id), UNIQUE(tag_id, post_id) |