From 330924886585f61114a6318886c8d7a9948ce00a Mon Sep 17 00:00:00 2001 From: Benjamin Meichsner Date: Tue, 24 Mar 2009 10:45:41 +0100 Subject: [PATCH] Removed restriction on create for invoices with the same delivery date. --- app/models/invoice.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/models/invoice.rb b/app/models/invoice.rb index 261499a2..05c69dab 100644 --- a/app/models/invoice.rb +++ b/app/models/invoice.rb @@ -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 }