search for: payment_numb

Displaying 2 results from an estimated 2 matches for "payment_numb".

Did you mean: payment_number
2006 Oct 12
2
How do I test a unique index?
I have a loans table and a payments table. Each loan has_many payments. So far no problem. Now, the payments table has a payment_number field, and each payment has a payment_number unique within that loan. For example, Loan A can have payment_numbers 0, 1, and 2 and Loan B can have payment_numbers 0, 1, 2, and 3 (but only one of each payment_number). I can enforce this with a unique index in the payments table on the combinat...
2006 Apr 17
2
binary info in test fixtures?
...my model fixtures to load the encrypted data. If, in my dynamic fixture (YAML) file, I could have access to my app''s models, the problem would be trivial.. instead of: valid_order: id: 1 storefront_id: 1 total_charge: 50.00 tax_charge: 5.00 ship_charge: 10.00 ... payment_number: 4111111111111111 (which doesn''t work), I could insert: valid_order: id: 1 storefront_id: 1 total_charge: 50.00 tax_charge: 5.00 ship_charge: 10.00 ... payment_number: <%= Order.encrypt("4111111111111111") %> which would give me what I want. My...