scinote-web/app/models/result_table.rb

8 lines
276 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-06-23 21:19:08 +08:00
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
2016-02-12 23:52:43 +08:00
end