Sha256: d4896452f4c31b98ab31ee2b377136dba6b063012bd2db8d114d63e1706c5c2e

Contents?: true

Size: 180 Bytes

Versions: 38

Compression:

Stored size: 180 Bytes

Contents

class Product < ActiveRecord::Base
  if self.respond_to?(:enum)
    enum status: [:in_stock, :short, :out_of_stock]
  end

  belongs_to :vendor
  has_and_belongs_to_many :tags
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
tabulatr2-0.10.4 spec/dummy/app/models/product.rb
tabulatr2-0.10.3 spec/dummy/app/models/product.rb
tabulatr2-0.10.2 spec/dummy/app/models/product.rb
tabulatr2-0.10.1 spec/dummy/app/models/product.rb
tabulatr2-0.10.0 spec/dummy/app/models/product.rb
tabulatr2-0.9.48 spec/dummy/app/models/product.rb
tabulatr2-0.9.47 spec/dummy/app/models/product.rb
tabulatr2-0.9.46 spec/dummy/app/models/product.rb
tabulatr2-0.9.45 spec/dummy/app/models/product.rb
tabulatr2-0.9.44 spec/dummy/app/models/product.rb
tabulatr2-0.9.43 spec/dummy/app/models/product.rb
tabulatr2-0.9.42 spec/dummy/app/models/product.rb
tabulatr2-0.9.41 spec/dummy/app/models/product.rb
tabulatr2-0.9.40 spec/dummy/app/models/product.rb
tabulatr2-0.9.39 spec/dummy/app/models/product.rb
tabulatr2-0.9.38 spec/dummy/app/models/product.rb
tabulatr2-0.9.37 spec/dummy/app/models/product.rb
tabulatr2-0.9.36 spec/dummy/app/models/product.rb
tabulatr2-0.9.35 spec/dummy/app/models/product.rb
tabulatr2-0.9.34 spec/dummy/app/models/product.rb