blob: d12cd41ec7c5a2466ac5c2231b07bcbf89377aa1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
# Product
# public_id:string
# name:string
# unitary_price:float
# bulk_price:float
# picture:attachment
# available_quantity:integer
# categories:text
class Product < ApplicationRecord
belongs_to :company
has_one_attached :picture
serialize :categories, Array
end
|