mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 13:19:39 +02:00
7 lines
190 B
Ruby
7 lines
190 B
Ruby
|
class ProviderMerchant < Merchant
|
||
|
enum :source, { plaid: "plaid", synth: "synth", ai: "ai" }
|
||
|
|
||
|
validates :name, uniqueness: { scope: [ :source ] }
|
||
|
validates :source, presence: true
|
||
|
end
|