In Rails, I need a model to have a `has_many` with two foreign keys that need to be matched to make the list.

Ex:

**Organization\_Profiles**

**table structure**

```
id : int
profile_id : int
organization_id : int

```

**associations**

```
belongs_to: :profile
belongs_to: :organization
has_many: :notifications, foreign_keys: [:profile_id, :organization_id], dependent: :destroy

```

**Notifications**

**table structure**

```
id : int
profile_id : int
organization_id : int
level : int
message : string

```

**associations**

```
belongs_to: :profile
belongs_to: :organization

```

How can I accomplish the above? From what I've researched, the `foreign_keys: []` does not exist.