20121222074732_create_links.rb 232 B

123456789101112
  1. class CreateLinks < ActiveRecord::Migration
  2. def change
  3. create_table :links do |t|
  4. t.integer :source_id
  5. t.integer :receiver_id
  6. t.timestamps
  7. end
  8. add_index :links, [:source_id, :receiver_id]
  9. end
  10. end