negos_app/db/migrate/20170517090709_create_reseaux_customers.rb
2017-05-18 01:21:04 +02:00

13 lines
346 B
Ruby

class CreateReseauxCustomers < ActiveRecord::Migration
def change
create_table :reseaux_customers do |t|
t.references :reseaux, index: true
t.references :customer, index: true
t.timestamps null: false
end
add_foreign_key :reseaux_customers, :reseauxes
add_foreign_key :reseaux_customers, :customers
end
end