mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 10:06:53 +08:00
7 lines
276 B
Ruby
7 lines
276 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ResultTable < ApplicationRecord
|
|
belongs_to :result, inverse_of: :result_tables
|
|
belongs_to :table, inverse_of: :result_table, dependent: :destroy, touch: true
|
|
has_one :result_orderable_element, as: :orderable, dependent: :destroy
|
|
end
|