mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-28 09:24:24 +01:00
18 lines
371 B
Ruby
18 lines
371 B
Ruby
# frozen_string_literal:true
|
|
|
|
class CreateAddresses < ActiveRecord::Migration[4.2]
|
|
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
|