15 lines
294 B
Ruby
15 lines
294 B
Ruby
|
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
|