migration with polymorphic and references