Many Rails tutorials depict the setup of an ActiveRecord association as requiring a database migration that establishes a foreign key (like with a has_many/belongs_to relationship, for instance). Yet other documentation seems to leave out the migration part altogether, just updating the models, nesting the routes, etc.
Is a migration always necessary to tie the two resources together, or is it just necessary for certain types of associations?