adonis migration drop column code example
Example: drop column adonisjs migration
down () {
//Remove Default Value Constraint
this.alter('mytable', (table) => {
table.boolean('column1')
table.boolean('column2')
})
//Remove Columns
this.alter('mytable', (table) => {
table.dropColumn('column1')
table.dropColumn('column2')
})
}