al13ntown/db/migrate/20260824104744_add_profile_to_blogs.rb

6 lines
144 B
Ruby
Raw Permalink Normal View History

2026-08-24 20:12:41 +00:00
class AddProfileToBlogs < ActiveRecord::Migration[8.1]
def change
add_reference :blogs, :profiles, null: false, foreign_key: true
end
end