mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
7 lines
240 B
Ruby
7 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
|