Plume/migrations/2018-09-03-102510_users_add.../up.sql

3 lines
110 B
SQL

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