Files
baffle-hub/db/migrate/20251103225240_create_sessions.rb
2025-11-04 10:32:05 +11:00

12 lines
248 B
Ruby

class CreateSessions < ActiveRecord::Migration[8.1]
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