20250308052223_create_sessions.rb 248 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 11 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