projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add merchandise MVC
[cs356-p2-videostore.git]
/
db
/
schema.rb
diff --git
a/db/schema.rb
b/db/schema.rb
index
77281f8
..
73ad8b3
100644
(file)
--- a/
db/schema.rb
+++ b/
db/schema.rb
@@
-2,7
+2,7
@@
# migrations feature of ActiveRecord to incrementally modify your database, and
# then regenerate this schema definition.
# migrations feature of ActiveRecord to incrementally modify your database, and
# then regenerate this schema definition.
-ActiveRecord::Schema.define(:version => 1
3
) do
+ActiveRecord::Schema.define(:version => 1
4
) do
create_table "coitems", :force => true do |t|
t.column "customer_id", :integer
create_table "coitems", :force => true do |t|
t.column "customer_id", :integer
@@
-23,6
+23,12
@@
ActiveRecord::Schema.define(:version => 13) do
t.column "name", :string, :null => false
end
t.column "name", :string, :null => false
end
+ create_table "merchandises", :force => true do |t|
+ t.column "name", :string, :null => false
+ t.column "quantity", :integer, :default => 0, :null => false
+ t.column "price", :decimal, :precision => 8, :scale => 2, :default => 0.0
+ end
+
create_table "rentables", :force => true do |t|
t.column "type", :string
t.column "title", :string
create_table "rentables", :force => true do |t|
t.column "type", :string
t.column "title", :string