Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
class MergeRequest < ApplicationRecord
|
|
|
|
belongs_to :requesting_organisation, class_name: "Organisation"
|
|
|
|
has_many :merge_request_organisations
|
|
|
|
belongs_to :absorbing_organisation, class_name: "Organisation", optional: true
|
|
|
|
has_many :merging_organisations, through: :merge_request_organisations, source: :merging_organisation
|
|
|
|
|
|
|
|
STATUS = {
|
|
|
|
"unsubmitted" => 0,
|
|
|
|
"submitted" => 1,
|
|
|
|
}.freeze
|
|
|
|
enum status: STATUS
|
|
|
|
end
|