Last active
September 29, 2017 17:21
-
-
Save giovannibenussi/d7def954f981a599302b9276787f9f77 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AddUserReferenceToPosts < ActiveRecord::Migration[5.1] | |
def change | |
add_reference :posts, :user, foreign_key: true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment