Create a new comment instead of a new annotation with the same ranges

This commit is contained in:
Amaia Castro
2017-01-25 16:04:10 +01:00
parent 7e30c6998b
commit 53d13d8524
6 changed files with 66 additions and 7 deletions

View File

@@ -0,0 +1,10 @@
class AddRangesFieldsToLegislationAnnotations < ActiveRecord::Migration
def change
add_column :legislation_annotations, :range_start, :string
add_column :legislation_annotations, :range_start_offset, :integer
add_column :legislation_annotations, :range_end, :string
add_column :legislation_annotations, :range_end_offset, :integer
add_index :legislation_annotations, [:range_start, :range_end]
end
end