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.1.1.pre.4 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.1.1.pre.3 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.1.1.pre.2 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.1.1.pre.1 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.1.0 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.0.8.pre.alpha.112 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.0.8.pre.alpha.111 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.0.8.pre.alpha.110 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.0.8.pre.alpha.109 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.0.8.pre.alpha.108 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.0.8.pre.alpha.107 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.0.8.pre.alpha.106 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.0.8.pre.alpha.105 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.0.8.pre.alpha.104 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.0.8.pre.alpha.103 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.0.8.pre.alpha.102 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.0.8.pre.alpha.101 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.0.8.pre.alpha.100 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.0.8.pre.alpha.99 pg_engine/spec/factories/user_accounts.rb
pg_rails-7.0.8.pre.alpha.98 pg_engine/spec/factories/user_accounts.rb