Plume/migrations/2018-09-02-123623_medias_owner_id/up.sql
2018-09-02 21:55:42 +01:00

2 lines
118 B
SQL

-- Your SQL goes here
ALTER TABLE medias ADD COLUMN owner_id INTEGER REFERENCES users(id) ON DELETE CASCADE NOT NULL;