habtm for collection.rb & media_entry.rb