Sha256: 42ab992b4efe01debef30da44c2659bc9ea8bf4b97555c47f74154d51b8930d5
Contents?: true
Size: 148 Bytes
Versions: 1
Compression:
Stored size: 148 Bytes
Contents
class AddUserRefToComments < ActiveRecord::Migration[6.0] def change add_reference :comments, :user, null: false, foreign_key: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blog_app-0.0.1 | db/migrate/20220819063129_add_user_ref_to_comments.rb |