Nested isn't working, another approach, add trans validations

User a transactions border, select the customer from a view of users and customers
This commit is contained in:
Jason Denney
2013-01-20 14:57:43 -05:00
parent 31935f6f7e
commit 1b7daa45ca
5 changed files with 74 additions and 49 deletions
@@ -2,8 +2,8 @@ class CreateTransactions < ActiveRecord::Migration
def change
create_table :transactions do |t|
t.integer "vendor_id", :null => false
t.integer "customer_id"
t.integer "customer_type"
t.integer "customer_id", :null => false
t.integer "customer_type", :null => false
t.integer "bike_id"
t.integer "amount", :null => false
t.string "item", :null => false