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 the has_many_polymorphs plugin
[cs356-p2-videostore.git]
/
vendor
/
plugins
/
has_many_polymorphs
/
test
/
integration
/
app
/
db
/
migrate
/
005_add_capitalization_to_seller.rb
diff --git a/vendor/plugins/has_many_polymorphs/test/integration/app/db/migrate/005_add_capitalization_to_seller.rb
b/vendor/plugins/has_many_polymorphs/test/integration/app/db/migrate/005_add_capitalization_to_seller.rb
new file mode 100644
(file)
index 0000000..
4042173
--- /dev/null
+++ b/
vendor/plugins/has_many_polymorphs/test/integration/app/db/migrate/005_add_capitalization_to_seller.rb
@@ -0,0
+1,9
@@
+class AddCapitalizationToSeller < ActiveRecord::Migration
+ def self.up
+ add_column :sellers, :capitalization, :float, :default => 0.0
+ end
+
+ def self.down
+ remove_column :sellers, :capitalization
+ end
+end