You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

13 lines
395 B

class CreateAnnotationAnnomarks < ActiveRecord::Migration[6.1]
def change
create_table :annotation_annomarks do |t|
t.references :annotation, null: false
t.references :annomark, null: false
t.timestamps
end
add_index :annotation_annomarks, %i[annotation_id annomark_id],
name: "index_annotation_annotation_marks_uniquness", unique: true
end
end