Skip to content

02 rails active record associations migrations

rubyone edited this page Jan 18, 2018 · 2 revisions

Mögliche Klausurfragen für Rails Active Record Associations.

Weise die vorhandenen Associations deren Typ zu:

A: belongs_to B: has_one C: has_many D: has_many :through E: has_one :through F: has_and_belongs_to_many

1 - 1:n

2 - n:m

3 - 1:1

A:

B:

C:

D:

E:

F:

Nenne jeweils ein Beispiel für 2 Associations:

Describe the meaning of data migration and how does it work in active records?