Creating Transactions works

-Need to scope transactions for users
-Only Admins should be able to create transactions
This commit is contained in:
Jason Denney
2013-01-20 16:14:53 -05:00
parent 1b7daa45ca
commit 2d51bd1d9a
8 changed files with 41 additions and 19 deletions
@@ -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
View File
@@ -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