Sha256: cb31be4b293b83d34d7f96a84227f3d448b9e5d9ab128ae115325bf213c15789

Contents?: true

Size: 225 Bytes

Versions: 3

Compression:

Stored size: 225 Bytes

Contents

module ShoppingCart
  class Delivery < ActiveRecord::Base
    has_many :orders

    validates :title,
              presence: true,
              uniqueness: true

    validates :price,
              presence: true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shopping-cart-0.1.2 app/models/shopping_cart/delivery.rb
shopping-cart-0.1.1 app/models/shopping_cart/delivery.rb
shopping-cart-0.1.0 app/models/shopping_cart/delivery.rb