Files
nairobi/db/migrate/20151215115319_add_legislation_id_to_annotations.rb
2015-12-16 11:45:47 +01:00

7 lines
207 B
Ruby

class AddLegislationIdToAnnotations < ActiveRecord::Migration
def change
remove_reference :annotations, :proposal
add_reference :annotations, :legislation, index: true, foreign_key: true
end
end