Migrations and Associations between Tables

10th lecture, June 17, 2019

Projects in Information Technology II

http://www.sw.it.aoyama.ac.jp/2019/Projects2/lecture10.html

Martin J. Dürst

AGU

© 2019 Martin J. Dürst 青山学院大学

総合復習テスト

 

Today's Schedule

 

Last Lecture's Exercises

  

Using Several Models

  

Model Associations Example

  

Many-to-One Association

  

Additional work for Associations

  

Migrations

  

Executing Migrations

  

Migration Details

  

View Partials

  

DSLs

  

Exercise 10a: Two Tables

 

Exercise 10b: Showing Movie Titles for Reviews

 

Exercise 10c: Showing Reviews for Movies

 

Exercise 10d: Add Points to Reviews

 

Homework

(no need to submit)