Sha256: 64201d37049ae881a65691974fb1eb89fe5bb04a346ae9ab2b21ba0a4ab7f401

Contents?: true

Size: 423 Bytes

Versions: 145

Compression:

Stored size: 423 Bytes

Contents

# frozen_string_literal: true

# generado con pg_rails

FactoryBot.define do
  factory :user_account do
    association :user
    association :account
    profiles { [UserAccount.profiles.values.sample] }

    trait :user_existente do
      user { nil }
      user_id { User.pluck(:id).sample }
    end

    trait :account_existente do
      account { nil }
      account_id { Account.pluck(:id).sample }
    end
  end
end

Version data entries

145 entries across 145 versions & 1 rubygems

Version Path
pg_rails-7.6.20 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.6.19 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.6.18 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.6.17 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.6.16 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.6.15 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.6.14 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.6.13 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.6.12 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.6.11 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.6.10 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.6.9 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.6.8 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.6.7 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.6.6 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.6.5 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.6.4 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.6.3 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.6.2 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.6.1 pg_engine/spec/factories/user_accounts.rb