wedding-planner/db/migrate/20241118232618_create_sessions.rb
Manuel Bustillo 45b16598e3 Revert "Add copyright notice"
This reverts commit 134bf27955e6caab0f7cc731f72551daae6f2a17.
2024-11-30 10:44:22 +01:00

12 lines
248 B
Ruby

class CreateSessions < ActiveRecord::Migration[8.0]
def change
create_table :sessions do |t|
t.references :user, null: false, foreign_key: true
t.string :ip_address
t.string :user_agent
t.timestamps
end
end
end