Retrospring/db/migrate/20221227002012_add_target_u...

8 lines
219 B
Ruby

# frozen_string_literal: true
class AddTargetUserToAnonymousBlocks < ActiveRecord::Migration[6.1]
def change
add_reference :anonymous_blocks, :target_user, null: true, foreign_key: { to_table: :users }
end
end