Report abuse


			
class Entry < ActiveRecord::Base
  has_many :assets, :polymorphic => :true, :dependent => :destroy
end

class Asset < ActiveRecord::Base
  belongs_to :entry
end

class Photo < Asset
end

class Video < Asset
end

entry = Entry.new
entry.assets << Photo.new
entry.assets << Video.new
entry.destroy