cours0708/P5B/ruby/mon_projet/db/migrate/004_create_addresses.rb~

15 lines
294 B
Ruby
Raw Permalink Normal View History

2008-11-25 21:11:16 +00:00
class CreateAddresses < ActiveRecord::Migration
def self.up
create_table :addresses do |t|
t.column :street, :text
t.column :postal_code, :string
t.column :city, :string
t.column :country, :string
end
end
def self.down
drop_table :addresses
end
end