negos_app/db/migrate/20160530173749_create_domain_needs.rb
2016-05-30 23:43:56 +02:00

13 lines
315 B
Ruby

class CreateDomainNeeds < ActiveRecord::Migration
def change
create_table :domain_needs do |t|
t.references :domain, index: true
t.references :need, index: true
t.timestamps null: false
end
add_foreign_key :domain_needs, :domains
add_foreign_key :domain_needs, :needs
end
end