mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-25 12:11:39 -04:00
Adding transactions
-Need to create a customers table to store contact information of customers who are not a user. -Need to scope "User Transactions" for users, staff, and admin. Need to have a "All Shop Transactions" tab. -Need to add conditional UX to form.
This commit is contained in:
+8
-3
@@ -88,9 +88,14 @@ ActiveRecord::Schema.define(:version => 20121229160809) do
|
||||
end
|
||||
|
||||
create_table "transactions", :force => true do |t|
|
||||
t.integer "user_id", :null => false
|
||||
t.integer "bike_id"
|
||||
t.integer "amount", :null => false
|
||||
t.integer "vendor_id", :null => false
|
||||
t.integer "customer_id"
|
||||
t.integer "customer_type"
|
||||
t.integer "bike_id"
|
||||
t.integer "amount", :null => false
|
||||
t.string "item", :null => false
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
end
|
||||
|
||||
create_table "user_actions", :force => true do |t|
|
||||
|
||||
Reference in New Issue
Block a user