mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
12 lines
381 B
Ruby
12 lines
381 B
Ruby
# This is just a table to record whether tenant has
|
|
# enabled o_auth or not (and is used only for default
|
|
# o_auths, i.e. o_auths with tenant_id = nil, because
|
|
# they are available to multiple tenants and so their
|
|
# is_enabled column cannot be used)
|
|
|
|
class TenantDefaultOAuth < ApplicationRecord
|
|
include TenantOwnable
|
|
|
|
belongs_to :o_auth, -> { unscope(where: :tenant_id) }
|
|
end
|