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 MaxVideos and MaxGames RentablePolicies
[cs356-p2-videostore.git]
/
db
/
schema.rb
diff --git
a/db/schema.rb
b/db/schema.rb
index
212ac71
..
8132da3
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 =>
16
) do
+ActiveRecord::Schema.define(:version =>
21
) do
create_table "bitems", :force => true do |t|
t.column "customer_id", :integer, :null => false
create_table "bitems", :force => true do |t|
t.column "customer_id", :integer, :null => false
@@
-29,8
+29,11
@@
ActiveRecord::Schema.define(:version => 16) do
t.column "name", :string, :null => false
end
t.column "name", :string, :null => false
end
+ create_table "merchandise_purchases", :force => true do |t|
+ end
+
create_table "merchandises", :force => true do |t|
create_table "merchandises", :force => true do |t|
- t.column "
name",
:string, :null => false
+ t.column "
title",
:string, :null => false
t.column "quantity", :integer, :default => 0, :null => false
t.column "price", :decimal, :precision => 8, :scale => 2, :default => 0.0
end
t.column "quantity", :integer, :default => 0, :null => false
t.column "price", :decimal, :precision => 8, :scale => 2, :default => 0.0
end
@@
-39,13
+42,18
@@
ActiveRecord::Schema.define(:version => 16) do
t.column "type", :string
t.column "customer_id", :integer
t.column "date", :date
t.column "type", :string
t.column "customer_id", :integer
t.column "date", :date
- t.column "price", :decimal, :
precision => 8, :scale => 2, :
default => 0.0
+ t.column "price", :decimal, :default => 0.0
t.column "rentable_id", :integer
t.column "rentable_id", :integer
- t.column "due_date", :date
t.column "merchandise_id", :integer
t.column "quantity", :integer
end
t.column "merchandise_id", :integer
t.column "quantity", :integer
end
+ create_table "rentable_policies", :force => true do |t|
+ t.column "name", :string, :null => false
+ t.column "value", :integer
+ t.column "description", :string, :null => false
+ 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
@@
-57,6
+65,9
@@
ActiveRecord::Schema.define(:version => 16) do
t.column "platform", :integer
end
t.column "platform", :integer
end
+# Could not dump table "sqlite_sequence" because of following StandardError
+# Unknown type '' for column 'name'
+
create_table "videogenres", :force => true do |t|
t.column "name", :string, :null => false
end
create_table "videogenres", :force => true do |t|
t.column "name", :string, :null => false
end