Sha256: 2f1b31a14380bf0108e662d73e94335cb4f1dfb8e21e4846ab6eda1a404fca1e

Contents?: true

Size: 378 Bytes

Versions: 1

Compression:

Stored size: 378 Bytes

Contents

module Org
  module Model::ResignReason
    extend ActiveSupport::Concern

    included do
      attribute :name, :string
      attribute :position, :integer
      attribute :resigns_count, :integer, default: 0

      has_many :resign_references, dependent: :destroy
      has_many :resigns, through: :resign_references

      validates :name, presence: true
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_org-0.0.1 app/models/org/model/resign_reason.rb