app.kluk.fr/db/migrate/20260112141055_create_sessions.rb

12 lines
248 B
Ruby
Raw Permalink Normal View History

2026-01-12 15:52:27 +01:00
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