Follow 'works'
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
DROP INDEX blocks_actor_id_index;
|
||||
DROP INDEX blocks_domain_name_index;
|
||||
DROP TABLE blocks;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
-- Your SQL goes here
|
||||
CREATE TABLE blocks (
|
||||
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 blocks_actor_id_index ON blocks(actor_id);
|
||||
CREATE INDEX blocks_domain_name_index ON blocks(domain_name);
|
||||
|
||||
SELECT diesel_manage_updated_at('blocks');
|
||||
|
||||
Reference in New Issue
Block a user