scinote-web/app/models/step_table.rb

7 lines
174 B
Ruby
Raw Normal View History

2016-02-12 23:52:43 +08:00
class StepTable < ActiveRecord::Base
validates :step, :table, presence: true
belongs_to :step, inverse_of: :step_tables
belongs_to :table, inverse_of: :step_table
end