Sha256: 95bfd2b984d5188db41f0807ee25c57b9c965f221b8a0d3f5ff0e4a25f65e73d

Contents?: true

Size: 459 Bytes

Versions: 52

Compression:

Stored size: 459 Bytes

Contents

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

      t.timestamps
    end

    add_index :authorization_codes, :token, unique: true
    add_reference :authorization_codes, :user, type: :uuid, index: true
    add_reference :authorization_codes, :oauth_client, type: :uuid, index: true
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
osso-0.1.2 lib/osso/db/migrate/20200413142511_create_authorization_codes.rb
osso-0.1.1 lib/osso/db/migrate/20200413142511_create_authorization_codes.rb
osso-0.1.0 lib/osso/db/migrate/20200413142511_create_authorization_codes.rb
osso-0.0.11 lib/osso/db/migrate/20200413142511_create_authorization_codes.rb
osso-0.0.10 lib/osso/db/migrate/20200413142511_create_authorization_codes.rb
osso-0.0.8 lib/osso/db/migrate/20200413142511_create_authorization_codes.rb
osso-0.0.7 lib/osso/db/migrate/20200413142511_create_authorization_codes.rb
osso-0.0.6 lib/osso/db/migrate/20200413142511_create_authorization_codes.rb
osso-0.0.6.alpha lib/osso/db/migrate/20200413142511_create_authorization_codes.rb
osso-0.0.5 lib/osso/db/migrate/20200413142511_create_authorization_codes.rb
osso-0.0.5.pre.lambda lib/osso/db/migrate/20200413142511_create_authorization_codes.rb
osso-0.0.5.pre.kappa lib/osso/db/migrate/20200413142511_create_authorization_codes.rb
osso-0.0.5.pre.iota lib/osso/db/migrate/20200413142511_create_authorization_codes.rb
osso-0.0.5.pre.theta lib/osso/db/migrate/20200413142511_create_authorization_codes.rb
osso-0.0.5.pre.eta lib/osso/db/migrate/20200413142511_create_authorization_codes.rb
osso-0.0.5.pre.zeta lib/osso/db/migrate/20200413142511_create_authorization_codes.rb
osso-0.0.5.pre.epsilon lib/osso/db/migrate/20200413142511_create_authorization_codes.rb
osso-0.0.5.pre.delta lib/osso/db/migrate/20200413142511_create_authorization_codes.rb
osso-0.0.5.pre.gamma lib/osso/db/migrate/20200413142511_create_authorization_codes.rb
osso-0.0.5.pre.beta lib/osso/db/migrate/20200413142511_create_authorization_codes.rb