12 lines
321 B
Ruby
12 lines
321 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Account < ApplicationRecord
|
|
# Associations
|
|
belongs_to :owner, polymorphic: true, optional: false
|
|
has_many :projects
|
|
has_many :s3_buckets, class_name: "S3Bucket", dependent: :destroy
|
|
|
|
# Validations
|
|
validates :name, exclusion: Defaults.fetch(:blocklisted_slug_keywords)
|
|
end
|