File: customer.rb

package info (click to toggle)
ruby-activerecord-import 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 840 kB
  • sloc: ruby: 4,698; makefile: 7
file content (8 lines) | stat: -rw-r--r-- 198 bytes parent folder | download
1
2
3
4
5
6
7
8
# frozen_string_literal: true

class Customer < ActiveRecord::Base
  has_many :orders,
    inverse_of: :customer,
    primary_key: %i(account_id id),
    foreign_key: %i(account_id customer_id)
end