mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
6 lines
240 B
Ruby
6 lines
240 B
Ruby
class AddUserIdToPlaces < ActiveRecord::Migration[8.0]
|
|
def change
|
|
# Add nullable for backward compatibility, will enforce later via data migration
|
|
add_reference :places, :user, null: true, foreign_key: true, index: true
|
|
end
|
|
end
|