mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user