status_pin.rb 375 B

12345678910111213141516
  1. # frozen_string_literal: true
  2. # == Schema Information
  3. #
  4. # Table name: status_pins
  5. #
  6. # id :integer not null, primary key
  7. # account_id :integer not null
  8. # status_id :integer not null
  9. #
  10. class StatusPin < ApplicationRecord
  11. belongs_to :account, required: true
  12. belongs_to :status, required: true
  13. validates_with StatusPinValidator
  14. end