Initial line item idea

This commit is contained in:
2026-03-01 15:04:25 -05:00
parent b95a3b6623
commit eb6beea5fa
12 changed files with 2716 additions and 28 deletions

7
app/models/line_item.rb Normal file
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