Actually save things! Yay!
This commit is contained in:
7
migrations/20230319163531_timestamp_function.up.sql
Normal file
7
migrations/20230319163531_timestamp_function.up.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
CREATE OR REPLACE FUNCTION set_updated_timestamp()
|
||||
RETURNS TRIGGER AS $$
|
||||
BEGIN
|
||||
NEW.updated_at = now();
|
||||
RETURN NEW;
|
||||
END;
|
||||
$$ language 'plpgsql';
|
||||
Reference in New Issue
Block a user