Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class AddUserToQuestion < ActiveRecord::Migration[6.0]
- def change
- add_reference :questions, :user, null: false, foreign_key: true
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement