مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
33 أسطر
776 B
Ruby
33 أسطر
776 B
Ruby
# frozen_string_literal: true
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: organizations
|
|
#
|
|
# id :integer not null, primary key
|
|
# uuid :string(255)
|
|
# name :string(255)
|
|
# permalink :string(255)
|
|
# time_zone :string(255)
|
|
# created_at :datetime
|
|
# updated_at :datetime
|
|
# ip_pool_id :integer
|
|
# owner_id :integer
|
|
# deleted_at :datetime
|
|
# suspended_at :datetime
|
|
# suspension_reason :string(255)
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_organizations_on_permalink (permalink)
|
|
# index_organizations_on_uuid (uuid)
|
|
#
|
|
|
|
FactoryBot.define do
|
|
factory :organization do
|
|
name { "Acme Inc" }
|
|
sequence(:permalink) { |n| "org#{n}" }
|
|
association :owner, factory: :user
|
|
end
|
|
end
|