Sha256: b47382cd7b3023adbc918c5e14a1257376a5cce1a60fadd009e1dfcee1d2df37

Contents?: true

Size: 398 Bytes

Versions: 2

Compression:

Stored size: 398 Bytes

Contents

class CreateAddresses < ActiveRecord::Migration
  def change
    create_table :addresses do |t|
      t.string :firstname, :null => false
      t.string :lastname, :null => false
      t.string :address1, :null => false
      t.string :address2
      t.string :city, :null => false
      t.references :state, :null => false
      t.string :zip, :null => false

      t.timestamps
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
piggybak-0.1.1 db/migrate/20111227150322_create_addresses.rb
piggybak-0.1.0 db/migrate/20111227150322_create_addresses.rb