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