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.5.pre.alpha lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.4 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.27 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.26 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.25 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.24 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.23 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.22 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.21 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.20 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.19 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.18 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.17 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.16 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.15 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.14 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.13 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.12 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.11 lib/osso/db/migrate/20200413163451_create_access_tokens.rb
osso-0.0.3.9 lib/osso/db/migrate/20200413163451_create_access_tokens.rb