This is similar to what we do with investments, which belong to a heading but also belong to a budget. In our case, the reason is we've been asked to add local targets which belong to a goal but are not related to any existing target. Even though we're not implementing that case right now, we're adding the relation so we don't have to add data migrations in the future.
6 lines
127 B
Ruby
6 lines
127 B
Ruby
class AddGoalsToLocalTargets < ActiveRecord::Migration[5.2]
|
|
def change
|
|
add_reference :sdg_local_targets, :goal
|
|
end
|
|
end
|