summaryrefslogtreecommitdiff
path: root/db/migrate/20111031125955_create_addresses.rb
blob: 6f31593a8996287411499be1ae40d2444ec6c6f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class CreateAddresses < ActiveRecord::Migration
  def self.up
    create_table :addresses do |t|
      t.integer :phone_book_entry_id
      t.string :line1
      t.string :line2
      t.string :street
      t.string :zip_code
      t.string :city
      t.integer :country_id
      t.integer :position
      t.timestamps
    end
  end

  def self.down
    drop_table :addresses
  end
end