2016-02-12 23:52:43 +08:00
|
|
|
class ResultTable < ActiveRecord::Base
|
|
|
|
validates :result, :table, presence: true
|
|
|
|
|
|
|
|
belongs_to :result, inverse_of: :result_table
|
2016-09-16 17:39:37 +08:00
|
|
|
belongs_to :table, inverse_of: :result_table, dependent: :destroy
|
2016-02-12 23:52:43 +08:00
|
|
|
end
|