Initial line item idea

This commit is contained in:
ricky committed 2026-03-01 15:04:25 -05:00
1 parent b95a3b6623
commit eb6beea5fa
12 files changed
+2716 -28

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
class LineItem < ApplicationRecord
belongs_to :issue
validates :description, presence: true
validates :quantity, numericality: { greater_than: 0 }
validates :unit_price, numericality: { greater_than_or_equal_to: 0 }
end