DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for: class MigrationClass < ActiveRecord::Migration[4.2] (called from require at bin/rails:4)
11 lines
432 B
Ruby
11 lines
432 B
Ruby
class AddRangesFieldsToLegislationAnnotations < ActiveRecord::Migration[4.2]
|
|
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
|