mirror of
https://github.com/czhu12/canine.git
synced 2026-01-06 11:40:44 -06:00
25 lines
575 B
Ruby
25 lines
575 B
Ruby
# == Schema Information
|
|
#
|
|
# Table name: account_users
|
|
#
|
|
# id :bigint not null, primary key
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
# account_id :bigint not null
|
|
# user_id :bigint not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_account_users_on_account_id (account_id)
|
|
# index_account_users_on_user_id (user_id)
|
|
#
|
|
# Foreign Keys
|
|
#
|
|
# fk_rails_... (account_id => accounts.id)
|
|
# fk_rails_... (user_id => users.id)
|
|
#
|
|
class AccountUser < ApplicationRecord
|
|
belongs_to :user
|
|
belongs_to :account
|
|
end
|