Sha256: aed018e4c4f4a3084b7a3f80df5989c0132588e53be1af5b24f64f08de08ff49

Contents?: true

Size: 222 Bytes

Versions: 13

Compression:

Stored size: 222 Bytes

Contents

module Ecom
  module Core
    class Company < ApplicationRecord
      has_many :projects

      validates :code, :name, :address, :telephone, presence: true
      validates :code, :name, uniqueness: true
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ecom_core-1.2.19 app/models/ecom/core/company.rb
ecom_core-1.2.18 app/models/ecom/core/company.rb
ecom_core-1.2.17 app/models/ecom/core/company.rb
ecom_core-1.2.16 app/models/ecom/core/company.rb
ecom_core-1.2.15 app/models/ecom/core/company.rb
ecom_core-1.2.14 app/models/ecom/core/company.rb
ecom_core-1.2.13 app/models/ecom/core/company.rb
ecom_core-1.2.12 app/models/ecom/core/company.rb
ecom_core-1.2.11 app/models/ecom/core/company.rb
ecom_core-1.2.10 app/models/ecom/core/company.rb
ecom_core-1.2.9 app/models/ecom/core/company.rb
ecom_core-1.2.7 app/models/ecom/core/company.rb
ecom_core-1.2.6 app/models/ecom/core/company.rb