Follow 'works'

This commit is contained in:
asonix
2020-03-15 12:49:27 -05:00
parent 6cb4484a33
commit aa6b5daaf0
12 changed files with 188 additions and 52 deletions
@@ -1,3 +1,3 @@
-- This file should undo anything in `up.sql`
DROP INDEX whitelists_actor_id_index;
DROP INDEX whitelists_domain_name_index;
DROP TABLE whitelists;
@@ -1,11 +1,11 @@
-- Your SQL goes here
CREATE TABLE whitelists (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
actor_id TEXT UNIQUE NOT NULL,
domain_name TEXT UNIQUE NOT NULL,
created_at TIMESTAMP NOT NULL,
updated_at TIMESTAMP NOT NULL
);
CREATE INDEX whitelists_actor_id_index ON whitelists(actor_id);
CREATE INDEX whitelists_domain_name_index ON whitelists(domain_name);
SELECT diesel_manage_updated_at('whitelists');