unepwcmc/SAPI

View on GitHub
app/models/proposal_details.rb

Summary

Maintainability
A
0 mins
Test Coverage
# == Schema Information
#
# Table name: proposal_details
#
#  id                  :integer          not null, primary key
#  document_id         :integer
#  proposal_nature     :text
#  proposal_outcome_id :integer
#  representation      :text
#  created_at          :datetime         not null
#  updated_at          :datetime         not null
#  proposal_number     :text
#

class ProposalDetails < ApplicationRecord
  # Used in DocumentsController
  # attr_accessible :document_id, :proposal_nature, :proposal_outcome_id,
  #   :representation, :proposal_number
  self.table_name = 'proposal_details'
  belongs_to :document, touch: true
end