and its relation with the SDG goal model. Add comparable module be able to sort collections of targets by code attribute. Co-Authored-By: Javi Martín <35156+javierm@users.noreply.github.com>
12 lines
235 B
Ruby
12 lines
235 B
Ruby
class CreateSDGTargets < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :sdg_targets do |t|
|
|
t.references :goal
|
|
t.string :code, null: false
|
|
t.timestamps
|
|
|
|
t.index :code, unique: true
|
|
end
|
|
end
|
|
end
|