adds migrations

This commit is contained in:
rgarcia
2015-08-28 00:02:01 +02:00
parent 974d004bc4
commit e3d6331452
14 changed files with 169 additions and 17 deletions

View File

@@ -0,0 +1,23 @@
class CreateAddresses < ActiveRecord::Migration
def change
create_table :addresses do |t|
t.integer :user_id
t.string :street
t.string :street_type
t.string :number
t.string :number_type
t.string :letter
t.string :portal
t.string :stairway
t.string :floor
t.string :door
t.string :km
t.string :neighbourhood
t.string :district
t.string :postal_code
t.string :toponymy
t.timestamps null: false
end
end
end