Add the has_many_polymorphs plugin
[cs356-p2-videostore.git] / vendor / plugins / has_many_polymorphs / test / integration / app / db / migrate / 003_create_addresses.rb
diff --git a/vendor/plugins/has_many_polymorphs/test/integration/app/db/migrate/003_create_addresses.rb b/vendor/plugins/has_many_polymorphs/test/integration/app/db/migrate/003_create_addresses.rb
new file mode 100644 (file)
index 0000000..a54f224
--- /dev/null
@@ -0,0 +1,19 @@
+class CreateAddresses < ActiveRecord::Migration
+  def self.up
+    create_table "addresses", :force => true do |t|
+      t.integer "user_id",                               :null => false
+      t.string  "name"
+      t.string  "line_1",                :default => "", :null => false
+      t.string  "line_2"
+      t.string  "city",                  :default => "", :null => false
+      t.integer "state_id",                              :null => false
+      t.string  "province_region"
+      t.string  "zip_postal_code"
+      t.integer "country_id",                            :null => false
+    end
+  end
+
+  def self.down
+    drop_table :addresses
+  end
+end