1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-07 06:25:19 +02:00
Maybe/db/migrate/20250312160915_user_latest_chat.rb
2025-03-12 12:39:16 -04:00

5 lines
175 B
Ruby

class UserLatestChat < ActiveRecord::Migration[7.2]
def change
add_reference :users, :current_chat, foreign_key: { to_table: :chats }, null: true, type: :uuid
end
end