mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
Creating Transactions works
-Need to scope transactions for users -Only Admins should be able to create transactions
This commit is contained in:
@@ -3,7 +3,7 @@ class CreateTransactions < ActiveRecord::Migration
|
||||
create_table :transactions do |t|
|
||||
t.integer "vendor_id", :null => false
|
||||
t.integer "customer_id", :null => false
|
||||
t.integer "customer_type", :null => false
|
||||
t.string "customer_type", :null => false
|
||||
t.integer "bike_id"
|
||||
t.integer "amount", :null => false
|
||||
t.string "item", :null => false
|
||||
|
||||
+2
-2
@@ -104,8 +104,8 @@ ActiveRecord::Schema.define(:version => 20130120142249) do
|
||||
|
||||
create_table "transactions", :force => true do |t|
|
||||
t.integer "vendor_id", :null => false
|
||||
t.integer "customer_id"
|
||||
t.integer "customer_type"
|
||||
t.integer "customer_id", :null => false
|
||||
t.string "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