class CreateComposeProjects < ActiveRecord::Migration[5.2]
  def change
    create_table :compose_projects do |t|
      t.integer :user_id
      t.integer :project_id
      t.integer :compose_id
      t.integer :position , default: 0

      t.timestamps
    end
    add_index :compose_projects, [:user_id, :project_id, :compose_id]
  end
end