about summary refs log blame commit diff stats
path: root/db/migrate/20231014140431_add_user_to_blog.rb
blob: 74af5554433f8415c2090f76f6bb7551d8a5ba9f (plain) (tree)
1
2
3
4
5



                                                  
class AddUserToBlog < ActiveRecord::Migration[7.0]
  def change
    add_reference :blogs, :user, foreign_key: true
  end
end