OpenProject is the leading open source project management software.
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.
 
 
 
 
 
 
openproject/db/migrate/20210221230446_add_group_us...

9 lines
327 B

class AddGroupUserPrimaryKey < ActiveRecord::Migration[6.1]
def change
# Adding a primary key will automatically fill that column with values.
# Therefore, there is no need to assign it manually.
add_column :group_users, :id, :primary_key
add_index :group_users, %i[user_id group_id], unique: true
end
end