mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 21:24:54 +08:00
6 lines
250 B
Ruby
6 lines
250 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Connection < ApplicationRecord
|
|
belongs_to :to, class_name: 'MyModule', foreign_key: 'input_id', inverse_of: :inputs
|
|
belongs_to :from, class_name: 'MyModule', foreign_key: 'output_id', inverse_of: :outputs
|
|
end
|