Add the has_many_polymorphs plugin
[cs356-p2-videostore.git] / vendor / plugins / has_many_polymorphs / test / integration / app / db / migrate / 003_create_addresses.rb
1 class CreateAddresses < ActiveRecord::Migration
2   def self.up
3     create_table "addresses", :force => true do |t|
4       t.integer "user_id",                               :null => false
5       t.string  "name"
6       t.string  "line_1",                :default => "", :null => false
7       t.string  "line_2"
8       t.string  "city",                  :default => "", :null => false
9       t.integer "state_id",                              :null => false
10       t.string  "province_region"
11       t.string  "zip_postal_code"
12       t.integer "country_id",                            :null => false
13     end
14   end
15
16   def self.down
17     drop_table :addresses
18   end
19 end