Sha256: 79900de2ac23d55bfe2f4c6288d48a7d0a21e14b425ef305eea2af027d7efd5a

Contents?: true

Size: 267 Bytes

Versions: 104

Compression:

Stored size: 267 Bytes

Contents

module EducodeSales
  class SalePlan < ApplicationRecord
    include ::Deletable
    belongs_to :business
    belongs_to :staff
    validates :business_id, presence: true

    validates :month, presence: true

    default_scope  -> {where(deleted_at: nil)}
  end
end

Version data entries

104 entries across 104 versions & 1 rubygems

Version Path
educode_sales-0.9.67 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.66 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.65 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.64 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.63 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.62 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.61 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.60 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.59 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.58 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.57 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.56 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.55 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.54 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.53 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.52 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.51 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.50 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.49 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.48 app/models/educode_sales/sale_plan.rb