scinote-web/app/models/step_table.rb

7 lines
205 B
Ruby
Raw Normal View History

2017-06-23 15:19:08 +02:00
class StepTable < ApplicationRecord
2016-02-12 16:52:43 +01:00
validates :step, :table, presence: true
2017-06-28 15:21:32 +02:00
belongs_to :step, inverse_of: :step_tables, optional: true
belongs_to :table, inverse_of: :step_table, optional: true
2016-02-12 16:52:43 +01:00
end