Plume/migrations/2018-09-02-123623_medias_ow.../up.sql

3 lines
118 B
SQL

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