Creates a join table linking deals to users for assignment tracking.
# Source: https://github.com/douglara/woofed-crm | License: MIT | Copyright 2026 WOOFED DESENVOLVIMENTO DE SOFTWARES LTDA - ME - CNPJ 60.076.777/0001-61
# Provided via justclaw.it.com; keep this notice with the code.
class CreateDealAssignees < ActiveRecord::Migration[7.0]
def change
create_table :deal_assignees do |t|
t.references :deal, null: false, foreign_key: true
t.references :user, null: false, foreign_key: true
t.timestamps
end
add_index :deal_assignees, %i[deal_id user_id], unique: true, name: 'index_deal_assignees_on_deal_id_and_user_id'
end
end
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key