dawarich/db/migrate/20240323190039_add_user_id_to_stat.rb

6 lines
140 B
Ruby
Raw Permalink Normal View History

2024-03-23 15:29:55 -04:00
class AddUserIdToStat < ActiveRecord::Migration[7.1]
def change
add_reference :stats, :user, null: false, foreign_key: true
end
end