clarion/app/models/proposition.rb
2015-08-14 23:58:51 +03:00

7 lines
190 B
Ruby

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