1
0

20140901143732_add_control_links.rb 361 B

12345678910111213
  1. class AddControlLinks < ActiveRecord::Migration
  2. def change
  3. create_table :control_links do |t|
  4. t.integer :controller_id, null: false
  5. t.integer :control_target_id, null: false
  6. t.timestamps
  7. end
  8. add_index :control_links, [:controller_id, :control_target_id], unique: true
  9. add_index :control_links, :control_target_id
  10. end
  11. end