wedding-planner/db/migrate/20241118232618_create_sessions.rb
Manuel Bustillo aa0986986f
All checks were successful
Add copyright notice / copyright_notice (pull_request) Successful in 1m1s
Check usage of free licenses / check-licenses (pull_request) Successful in 2m56s
Run unit tests / unit_tests (pull_request) Successful in 3m27s
Install Rails' authentication generator
2024-11-19 00:26:44 +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