mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 19:24:10 +08:00
15 lines
406 B
Ruby
15 lines
406 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateAssetSyncTokens < ActiveRecord::Migration[7.0]
|
|
def change
|
|
create_table :asset_sync_tokens do |t|
|
|
t.references :user, null: false, foreign_key: true
|
|
t.references :asset, null: false, foreign_key: true
|
|
t.string :token, index: { unique: true }
|
|
t.timestamp :expires_at
|
|
t.timestamp :revoked_at
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|