feat: add times of creation and update to the task model
This commit is contained in:
@ -0,0 +1,5 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
|
||||
ALTER TABLE "tasks" DROP COLUMN "created_at";
|
||||
ALTER TABLE "tasks" DROP COLUMN "updated_at";
|
||||
|
@ -0,0 +1,7 @@
|
||||
-- Your SQL goes here
|
||||
|
||||
ALTER TABLE "tasks" ADD COLUMN "created_at" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP;
|
||||
ALTER TABLE "tasks" ADD COLUMN "updated_at" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP;
|
||||
|
||||
SELECT diesel_manage_updated_at('tasks');
|
||||
|
Reference in New Issue
Block a user