From 1b63da13b4d78fcd76924eeb2750e65cfd9563e4 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Wed, 18 May 2022 17:02:12 +0200 Subject: [PATCH] Improve stock consumption recording [SCI-6805] --- app/models/my_module_repository_row.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/my_module_repository_row.rb b/app/models/my_module_repository_row.rb index cc6b0b9fb..f947cc362 100644 --- a/app/models/my_module_repository_row.rb +++ b/app/models/my_module_repository_row.rb @@ -1,8 +1,8 @@ class MyModuleRepositoryRow < ApplicationRecord include ActionView::Helpers::NumberHelper - attr_accessor :last_modified_by - attr_accessor :comment + attribute :last_modified_by, :integer + attribute :comment, :text belongs_to :assigned_by, foreign_key: 'assigned_by_id',