Structure updates
This commit is contained in:
@@ -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>'},
|
||||
|
||||
Reference in New Issue
Block a user