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.7.4 app/models/educode_sales/sale_plan.rb
educode_sales-0.7.3 app/models/educode_sales/sale_plan.rb
educode_sales-0.7.2 app/models/educode_sales/sale_plan.rb
educode_sales-0.7.1 app/models/educode_sales/sale_plan.rb
educode_sales-0.7.0 app/models/educode_sales/sale_plan.rb
educode_sales-0.6.9 app/models/educode_sales/sale_plan.rb
educode_sales-0.6.8 app/models/educode_sales/sale_plan.rb
educode_sales-0.6.7 app/models/educode_sales/sale_plan.rb
educode_sales-0.6.6 app/models/educode_sales/sale_plan.rb
educode_sales-0.6.5 app/models/educode_sales/sale_plan.rb
educode_sales-0.6.4 app/models/educode_sales/sale_plan.rb
educode_sales-0.6.3 app/models/educode_sales/sale_plan.rb
educode_sales-0.6.2 app/models/educode_sales/sale_plan.rb
educode_sales-0.6.1 app/models/educode_sales/sale_plan.rb
educode_sales-0.6.0 app/models/educode_sales/sale_plan.rb
educode_sales-0.5.9 app/models/educode_sales/sale_plan.rb
educode_sales-0.5.8 app/models/educode_sales/sale_plan.rb
educode_sales-0.5.7 app/models/educode_sales/sale_plan.rb
educode_sales-0.5.6 app/models/educode_sales/sale_plan.rb
educode_sales-0.5.5 app/models/educode_sales/sale_plan.rb