Skip to main content

downgrade

Reverts database schema changes by restoring the foreign key constraint on the 'item' table and setting the 'owner_id' column to be nullable.

def downgrade() - > null

Reverts database schema changes by restoring the foreign key constraint on the 'item' table and making the 'owner_id' column nullable.

Returns

TypeDescription
nullNothing is returned as this function performs in-place database schema migrations.