clarion/app/models/proposition.rb
Petko Bordjukov cc4f1e9c13 Introduce the Proposition model
Introduce an abstraction that is going to be used to propose models for
other models that can accept propositions.
2015-04-17 02:03:07 +03:00

6 lines
185 B
Ruby

class Proposition < ActiveRecord::Base
belongs_to :proposer, class_name: 'User'
belongs_to :proposition_accepting, polymorphic: true
belongs_to :proposable, polymorphic: true
end