clarion/app/models/proposition.rb
2015-04-20 18:34:17 +03:00

8 lines
245 B
Ruby

class Proposition < ActiveRecord::Base
belongs_to :proposer, class_name: 'User'
belongs_to :proposition_accepting, polymorphic: true
belongs_to :proposable, polymorphic: true
enum status: [:undecided, :approved, :rejected, :backup]
end