Files
postal/app/models/organization_user.rb
T

22 lines
504 B
Ruby

# frozen_string_literal: true
# == Schema Information
#
# Table name: organization_users
#
# id :integer not null, primary key
# organization_id :integer
# user_id :integer
# created_at :datetime
# admin :boolean default(FALSE)
# all_servers :boolean default(TRUE)
# user_type :string(255)
#
class OrganizationUser < ApplicationRecord
belongs_to :organization
belongs_to :user, polymorphic: true, optional: true
end