morphs method

void morphs(
  1. String name
)

Adds morphs (polymorphic relations)

Implementation

void morphs(String name) {
  string('${name}_type');
  bigInteger('${name}_id').unsigned();
}