al13ntown/db/migrate/20260824072810_create_sessions.rb

12 lines
248 B
Ruby
Raw Normal View History

2026-08-24 20:12:41 +00:00
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