|
1
|
class CreateAuthorizations < ActiveRecord::Migration[6.1] |
|
2
|
def change |
|
3
|
create_table :authorizations do |t| |
|
4
|
t.references :user, foreign_key: true |
|
5
|
t.string :provider |
|
6
|
t.string :uid |
|
7
|
t.string :token |
|
8
|
t.timestamp :token_expires_at, limit: 6 |
|
9
|
|
|
10
|
t.timestamps |
|
11
|
end |
|
12
|
end |
|
13
|
end |