Removed restriction on create for invoices with the same delivery date.

This commit is contained in:
Benjamin Meichsner 2009-03-24 10:45:41 +01:00
parent 37199bae1d
commit 3309248865

View file

@ -25,7 +25,6 @@ class Invoice < ActiveRecord::Base
belongs_to :order
validates_presence_of :supplier_id
validates_uniqueness_of :date, :scope => [:supplier_id]
named_scope :unpaid, :conditions => { :paid_on => nil }