Sha256: 005472b9653b8aedab4bf817ea514448addeda5dadc5c96cc194dd10f81bcedf

Contents?: true

Size: 433 Bytes

Versions: 52

Compression:

Stored size: 433 Bytes

Contents

class CreateRedirectUrisAndDropFromOauthClients < ActiveRecord::Migration[6.0]
  def change
    remove_column :oauth_clients, :redirect_uris

    create_table :redirect_uris, id: :uuid do |t|
      t.string :uri, null: false
      t.boolean :primary, default: false, null: false
    end

    add_index :redirect_uris, [:uri, :primary], unique: true
    add_reference :redirect_uris, :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/20200502120616_create_redirect_uris_and_drop_from_oauth_clients.rb
osso-0.1.1 lib/osso/db/migrate/20200502120616_create_redirect_uris_and_drop_from_oauth_clients.rb
osso-0.1.0 lib/osso/db/migrate/20200502120616_create_redirect_uris_and_drop_from_oauth_clients.rb
osso-0.0.11 lib/osso/db/migrate/20200502120616_create_redirect_uris_and_drop_from_oauth_clients.rb
osso-0.0.10 lib/osso/db/migrate/20200502120616_create_redirect_uris_and_drop_from_oauth_clients.rb
osso-0.0.8 lib/osso/db/migrate/20200502120616_create_redirect_uris_and_drop_from_oauth_clients.rb
osso-0.0.7 lib/osso/db/migrate/20200502120616_create_redirect_uris_and_drop_from_oauth_clients.rb
osso-0.0.6 lib/osso/db/migrate/20200502120616_create_redirect_uris_and_drop_from_oauth_clients.rb
osso-0.0.6.alpha lib/osso/db/migrate/20200502120616_create_redirect_uris_and_drop_from_oauth_clients.rb
osso-0.0.5 lib/osso/db/migrate/20200502120616_create_redirect_uris_and_drop_from_oauth_clients.rb
osso-0.0.5.pre.lambda lib/osso/db/migrate/20200502120616_create_redirect_uris_and_drop_from_oauth_clients.rb
osso-0.0.5.pre.kappa lib/osso/db/migrate/20200502120616_create_redirect_uris_and_drop_from_oauth_clients.rb
osso-0.0.5.pre.iota lib/osso/db/migrate/20200502120616_create_redirect_uris_and_drop_from_oauth_clients.rb
osso-0.0.5.pre.theta lib/osso/db/migrate/20200502120616_create_redirect_uris_and_drop_from_oauth_clients.rb
osso-0.0.5.pre.eta lib/osso/db/migrate/20200502120616_create_redirect_uris_and_drop_from_oauth_clients.rb
osso-0.0.5.pre.zeta lib/osso/db/migrate/20200502120616_create_redirect_uris_and_drop_from_oauth_clients.rb
osso-0.0.5.pre.epsilon lib/osso/db/migrate/20200502120616_create_redirect_uris_and_drop_from_oauth_clients.rb
osso-0.0.5.pre.delta lib/osso/db/migrate/20200502120616_create_redirect_uris_and_drop_from_oauth_clients.rb
osso-0.0.5.pre.gamma lib/osso/db/migrate/20200502120616_create_redirect_uris_and_drop_from_oauth_clients.rb
osso-0.0.5.pre.beta lib/osso/db/migrate/20200502120616_create_redirect_uris_and_drop_from_oauth_clients.rb