Advertisement
saruman_87

Untitled

May 17th, 2020
1,015
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.15 KB | None | 0 0
  1. class AddUserToQuestion < ActiveRecord::Migration[6.0]
  2.   def change
  3.     add_reference :questions, :user, null: false, foreign_key: true
  4.   end
  5. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement