I've got to define a One-To-Many association in Rails. Like e.g. "Vendor" and "Article" (One vendor has many articles).
Is it necessary to have a foreign key-field "vendor_id:int" in "Article" when scaffolding?
Or is it sufficient to define the associations later within the model-classes of "Vendor" and "Article"?
Means: "Article"-class gets a statement "belongs_to :vendor" and "Vendor"-class gets a statement "has_many :articles".