From 0aace2986a9a7a6d4c84a9ba6819d3df7821e267 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 14 Oct 2023 10:15:24 -0400 Subject: Blogs have an author now --- db/migrate/20231014140431_add_user_to_blog.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20231014140431_add_user_to_blog.rb (limited to 'db/migrate') diff --git a/db/migrate/20231014140431_add_user_to_blog.rb b/db/migrate/20231014140431_add_user_to_blog.rb new file mode 100644 index 0000000..74af555 --- /dev/null +++ b/db/migrate/20231014140431_add_user_to_blog.rb @@ -0,0 +1,5 @@ +class AddUserToBlog < ActiveRecord::Migration[7.0] + def change + add_reference :blogs, :user, foreign_key: true + end +end -- cgit 1.4.1