1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-05 16:24:21 +01:00
fab-manager/db/migrate/20140522115617_create_addresses.rb

16 lines
336 B
Ruby
Raw Normal View History

2015-05-05 03:10:25 +02:00
class CreateAddresses < ActiveRecord::Migration
def change
create_table :addresses do |t|
t.string :address
t.string :street_number
t.string :route
t.string :locality
t.string :country
t.string :postal_code
t.references :placeable, polymorphic: true
t.timestamps
end
end
end