Rails Exporter Plugin
One To Many Relation
http://rails.kirschekreativ.de/one-to-many-relation-i.html

Copyright © 2013 Joerg Kirschstein

 

One To Many Relation

Two tables are converted to model-, migration-, schema- and seeds files. Contains a 1:n relationship.

MODEL FILES



MIGRATION FILES


SCHEMA FILE


SEEDS FILE [excerpt]


SEEDED DATABASE [excerpt]