describe black magic for Rails 'has_many' and 'belongs_to'