Change invoices.issue_date database column to NOT NULL

Closes #1008
This commit is contained in:
Artur Beljajev 2019-03-15 19:31:51 +02:00
parent 6fa1ce9128
commit 30ea880211
6 changed files with 8 additions and 60 deletions

View file

@ -26,7 +26,6 @@ class Invoice < ActiveRecord::Base
scope :overdue, -> { unpaid.non_cancelled.where('due_date < ?', Time.zone.today) }
validates :issue_date, presence: true
validates :due_date, :currency, :seller_name,
:seller_iban, :buyer_name, :items, presence: true
validates :vat_rate, numericality: { greater_than_or_equal_to: 0, less_than: 100 },