Sha256: 5cfea0ba8838a0b17be3412fab37cd6d2446d2de0bc4bd0aa6c313ae4507cf8a

Contents?: true

Size: 348 Bytes

Versions: 52

Compression:

Stored size: 348 Bytes

Contents

class CreateAccessTokens < ActiveRecord::Migration[6.0]
  def change
    create_table :access_tokens, id: :uuid do |t|
      t.string :token
      t.datetime :expires_at

      t.timestamps
    end

    add_reference :access_tokens, :user, type: :uuid, index: true
    add_reference :access_tokens, :oauth_client, type: :uuid, index: true
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
osso-0.0.3.8 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.7 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.6 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.5 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.4 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.3 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.2 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.1 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.2.10 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.2.9 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.2.8 lib/osso/db/migrate/20200413163451_create_access_tokens.rb