master
 1class CreateUserSessions < ActiveRecord::Migration
 2  def change
 3    create_table :user_sessions, id: :uuid do |t|
 4      t.belongs_to :user, foreign_key: true, type: :uuid, index: true, null: false
 5      t.string :ip
 6      t.text :user_agent
 7      t.datetime :accessed_at
 8      t.datetime :revoked_at
 9
10      t.timestamps null: false
11    end
12  end
13end