github.com/wawandco/ox@v0.13.6-0.20230809142027-913b3d837f2a/plugins/tools/soda/fizz/create_default.go (about)

     1  package fizz
     2  
     3  type createDefault struct{}
     4  
     5  func (ct *createDefault) match(name string) bool {
     6  	return false
     7  }
     8  
     9  func (ct *createDefault) GenerateFizz(name string, args []string) (string, string, error) {
    10  	up := `<%
    11  # You can add your migration from this point. For example:
    12  # create_table("users") {
    13  #   t.Column("id", "uuid", {primary: true})
    14  #   t.Column("email", "string", {})
    15  # }
    16  %>`
    17  
    18  	down := `<%
    19  # You can add your migration from this point. For example:
    20  # drop_table("users")
    21  %>`
    22  
    23  	return up, down, nil
    24  }