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>'},
+3 -3
View File
@@ -3,10 +3,10 @@ class ProductCategory
include ActiveModel::SerializerSupport
property :name
property :position, type: Fixnum, default: 0
property :position, type: Integer, default: 0
property :full_day, type: :boolean, default: true
property :start_from, type: Fixnum, default: 1320 # 22:00
property :end_on, type: Fixnum, default: 1380 # 23:00
property :start_from, type: Integer, default: 1320 # 22:00
property :end_on, type: Integer, default: 1380 # 23:00
property :active_on_sunday, type: :boolean, default: true
property :active_on_monday, type: :boolean, default: true
property :active_on_tuesday, type: :boolean, default: true
+1 -1
View File
@@ -2,7 +2,7 @@ class ProductOrder
include SimplyStored::Couch
include ActiveModel::SerializerSupport
property :quantity, type: Fixnum
property :quantity, type: Integer
property :price, type: Float
property :product_name
property :product_variant
+1 -1
View File
@@ -2,7 +2,7 @@ class ProductVariant
include SimplyStored::Couch
include ActiveModel::SerializerSupport
property :name
property :position, type: Fixnum, default: 0
property :position, type: Integer, default: 0
belongs_to :product
belongs_to :supplier
+1 -1
View File
@@ -9,7 +9,7 @@ class Supplier
property :email
property :open, type: :boolean, default: false
property :time_zone, default: 'UTC'
property :night_offset, type: Fixnum, default: 0 # Minutes
property :night_offset, type: Integer, default: 0 # Minutes
property :address
property :house_number
property :house_number_addition
+1 -1
View File
@@ -3,7 +3,7 @@ class Table
include ActiveModel::SerializerSupport
per_page_method :limit_value #kaminari
property :number, type: Fixnum, default: 1
property :number, type: Integer, default: 1
property :position_x, type: Float, default: 0
property :position_y, type: Float, default: 0
property :needs_help, type: :boolean, default: false