CreateAppsSalesforceRecordLinks (migrate/20260811120001_create_apps_salesforce_record_links.rb)

woofed-crm · db/migrate/20260811120001_create_apps_salesforce_record_links.rb · ruby · MIT
crm, CRM / Leads

Module exposing: CreateAppsSalesforceRecordLinks, change

# 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 CreateAppsSalesforceRecordLinks < ActiveRecord::Migration[7.1]
  def change
    create_table :apps_salesforce_record_links do |t|
      t.references :app, null: false, foreign_key: { to_table: :apps_salesforces }
      # The Salesforce end of the bridge. The object is stored rather than derived
      # from the id prefix, because custom objects have per-org prefixes.
      t.string :salesforce_id, null: false
      t.string :salesforce_object, null: false
      # The Woofed end: Company, Contact, Deal or Event.
      t.references :recordable, polymorphic: true, null: fal

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key