hunk.code_window: Once you setup connection options you can create a new migration using CLI:
   ```
   typeorm migrations:create -n PostRefactoring
   ```
   To use CLI commands, you need to install typeorm globally (`npm i typeorm -g`).
   Also, make sure your local typeorm version matches the global version.
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit: typeorm migration:create -n PostRefactoring
  
hunk.file_path: docs/migrations.md
hunk.type: replace
file: import {Category} from "./Category";
  import {Entity} from "../../../../../src/decorator/entity/Entity";
  import {PrimaryGeneratedColumn} from "../../../../../src/decorator/columns/PrimaryGeneratedColumn";
  import {Column} from "../../../../../src/decorator/columns/Column";
  import {ManyToMany} from "../../../../../src/decorator/relations/ManyToMany";
  import {JoinTable} from "../../../../../src/decorator/relations/JoinTable";
  
  @Entity()
  export class Post {
  
      @PrimaryGeneratedColumn()
      id: number;
  
      @Column()
      title: string;
  
      @ManyToMany(type => Category, category => category.posts)
      @JoinTable()
      categories: Category[]|null;
  
  }