--up
-- This is a 2 part migration, the first one will add the column to the table
-- and the second one will add the default value to the column
-- This is done to avoid adding a default value to rows that already exists

-- Change the saved_at column to be default now
ALTER TABLE projects ALTER COLUMN saved_at SET DEFAULT NOW();

--down
ALTER TABLE projects ALTER COLUMN saved_at DROP DEFAULT;
