scinote-web/db/migrate/20150722112911_add_foreign_keys.rb

11 lines
364 B
Ruby
Raw Normal View History

2016-02-12 23:52:43 +08:00
class AddForeignKeys < ActiveRecord::Migration
def change
add_foreign_key :my_modules, :my_module_groups
add_foreign_key :project_comments, :comments
add_foreign_key :my_module_comments, :comments
add_foreign_key :result_assets, :results
add_foreign_key :result_comments, :comments
add_foreign_key :checklist_items, :checklists
end
end