Skip to main content

upgrade

Updates the database schema by setting the 'owner_id' column in the 'item' table to non-nullable and reconfiguring its foreign key constraint to include a cascade delete behavior.

def upgrade() - > null

Updates the database schema by making the 'owner_id' column in the 'item' table non-nullable and reconfiguring the foreign key constraint to include a cascading delete behavior.

Returns

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