Sha256: 340e3c07600492e00d5aced883072eb209b43a1b8c58c7d48e4f39dd574e62ec

Contents?: true

Size: 348 Bytes

Versions: 17

Compression:

Stored size: 348 Bytes

Contents

# frozen_string_literal: true

# generado con pg_rails

FactoryBot.define do
  factory :account do
    plan { Account.plan.values.sample }
    nombre { Faker::Lorem.sentence }

    trait :with_owner do
      after(:create) do |model|
        ActsAsTenant.with_tenant(model) do
          create :user, :owner
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pg_rails-7.6.23 pg_engine/spec/factories/accounts.rb
pg_rails-7.6.22 pg_engine/spec/factories/accounts.rb
pg_rails-7.6.22.pre.3 pg_engine/spec/factories/accounts.rb
pg_rails-7.6.22.pre.2 pg_engine/spec/factories/accounts.rb
pg_rails-7.6.22.pre.1 pg_engine/spec/factories/accounts.rb
pg_rails-7.6.21 pg_engine/spec/factories/accounts.rb
pg_rails-7.6.21.pre.11 pg_engine/spec/factories/accounts.rb
pg_rails-7.6.21.pre.10 pg_engine/spec/factories/accounts.rb
pg_rails-7.6.21.pre.9 pg_engine/spec/factories/accounts.rb
pg_rails-7.6.21.pre.8 pg_engine/spec/factories/accounts.rb
pg_rails-7.6.21.pre.7 pg_engine/spec/factories/accounts.rb
pg_rails-7.6.21.pre.6 pg_engine/spec/factories/accounts.rb
pg_rails-7.6.21.pre.5 pg_engine/spec/factories/accounts.rb
pg_rails-7.6.21.pre.4 pg_engine/spec/factories/accounts.rb
pg_rails-7.6.21.pre.3 pg_engine/spec/factories/accounts.rb
pg_rails-7.6.21.pre.2 pg_engine/spec/factories/accounts.rb
pg_rails-7.6.21.pre.1 pg_engine/spec/factories/accounts.rb