mirror of https://github.com/fspc/BikeShed-1.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
733 B
20 lines
733 B
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 "bike_id"
|
|
t.integer "amount", :null => false
|
|
t.string "item", :null => false
|
|
#Adding whether or not a user sold or purchased the bike
|
|
#could be used to help keep track of external sales.
|
|
#aka, a collective member (user) sold a bike to
|
|
#a non user
|
|
#Currently this model automatically assumes that the user is
|
|
#purchasing a bike, or a part for a bike from the collective
|
|
#t.boolean "user_sold_flag", :default => false
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|
|
|