2015-04-17 02:01:28 +03:00
|
|
|
class Proposition < ActiveRecord::Base
|
|
|
|
belongs_to :proposer, class_name: 'User'
|
|
|
|
belongs_to :proposition_accepting, polymorphic: true
|
|
|
|
belongs_to :proposable, polymorphic: true
|
2015-04-20 18:34:17 +03:00
|
|
|
|
|
|
|
enum status: [:undecided, :approved, :rejected, :backup]
|
2015-04-17 02:01:28 +03:00
|
|
|
end
|