Structure updates

This commit is contained in:
2019-01-31 10:44:06 -05:00
parent f879279a0a
commit da2ba6230d
11 changed files with 104 additions and 110 deletions
+3 -3
View File
@@ -9,7 +9,7 @@ class Product
property :description
property :visible, type: :boolean, default: true
property :active, type: :boolean, default: true
property :position, type: Fixnum
property :position, type: Integer
belongs_to :product_category
#has_and_belongs_to_many :product_categories, storing_keys: false
@@ -39,8 +39,8 @@ class Product
property :image_file_name
property :image_content_type
property :image_file_size, :type => Fixnum
property :image_updated_at, :type => Time
property :image_file_size, type: Integer
property :image_updated_at, type: Time
has_attached_file :image,
url: '/system/product/:id/images/:style.:extension',
styles: {medium: '512x512>', thumb: '128x128>', large: '896x896>', small: '320x320>'},