2019-04-28 11:56:16 +03:00
|
|
|
class CreateConflictCounts < ActiveRecord::Migration[4.2]
|
2016-10-13 08:59:22 +03:00
|
|
|
def change
|
|
|
|
create_table :conflict_counts do |t|
|
|
|
|
t.references :left, index: true
|
|
|
|
t.references :right, index: true
|
|
|
|
t.integer :number_of_conflicts
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index :conflict_counts, [:left_id, :right_id], unique: true
|
|
|
|
end
|
|
|
|
end
|